Function at 0x406040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a0dd
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4490e0
lea ecx, [ebp - 0x248]
call fcn.00409060
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x449160
lea ecx, [ebp - 0x248]
call fcn.00408d80
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0xffffffff
jne 0x4060ca
mov dword [ebp - 0x338], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00408f00
mov eax, dword [ebp - 0x338]
jmp 0x406452
mov eax, dword [ebp - 0x334]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00408d30
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x278]
call fcn.00408e00
push eax
call fcn.0041f45e
add esp, 8
cmp eax, 0xffffffff
jne 0x4061c1
lea ecx, [ebp - 0x278]
call fcn.00408e00
mov dword [ebp - 0x330], eax
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.0041cb70
add esp, 0xc
push 0x5c
mov eax, dword [ebp - 0x330]
push eax
call fcn.00401360
add esp, 8
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x4061c1
mov ecx, dword [ebp - 0x32c]
sub ecx, dword [ebp - 0x330]
sar ecx, 1
add ecx, 1
push ecx
mov edx, dword [ebp - 0x330]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00411d30
add esp, 0xc
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x33c], eax
mov edx, dword [ebp - 0x32c]
add edx, 2
mov dword [ebp - 0x32c], edx
push 0x5c
mov eax, dword [ebp - 0x32c]
push eax
call fcn.00401360
add esp, 8
mov dword [ebp - 0x32c], eax
jmp 0x406149
push 0xb0
lea ecx, [ebp - 0x328]
call fcn.00403e50
push 1
push 0x40
push 2
push 0x449170
lea ecx, [ebp - 0x328]
call fcn.0040b410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00409590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.00409590
mov byte [ebp - 4], 4
movzx ecx, byte [0x4500e1]
test ecx, ecx
je 0x406292
push str.VER0
lea ecx, [ebp - 0x230]
call fcn.00409330
push 0x4491f8
lea ecx, [ebp - 0x364]
call fcn.00409520
mov byte [ebp - 4], 5
lea edx, [ebp - 0x364]
push edx
mov ecx, 0x450154
call fcn.00408c40
push eax
push 0x449164
lea eax, [ebp - 0x394]
push eax
call fcn.00411b90
add esp, 0xc
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00409410
lea ecx, [ebp - 0x394]
call fcn.004093c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x364]
call fcn.004093c0
jmp 0x4062fe
push 0x449208
lea ecx, [ebp - 0x37c]
call fcn.00409520
mov byte [ebp - 4], 6
lea edx, [ebp - 0x37c]
push edx
mov ecx, 0x450154
call fcn.00408c40
push eax
push str.VER
lea eax, [ebp - 0x3ac]
push eax
call fcn.00411b90
add esp, 0xc
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00409410
lea ecx, [ebp - 0x3ac]
call fcn.004093c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x37c]
call fcn.004093c0
mov edx, dword [ebp - 0x328]
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0x328]
call fcn.00403a10
movzx ecx, al
test ecx, ecx
je 0x406376
push 0x4120b0
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x328]
push eax
call fcn.00411d50
add esp, 8
mov ecx, eax
call fcn.0040af00
movzx ecx, byte [0x4500e1]
test ecx, ecx
je 0x406369
push 0x4120b0
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x328]
push eax
call fcn.00411d50
add esp, 8
mov ecx, eax
call fcn.0040af00
lea ecx, [ebp - 0x328]
call fcn.0040b380
jmp 0x4063f4
push 0x4120b0
push 0x449218
push 0x44f300
call fcn.00411d80
add esp, 8
mov ecx, eax
call fcn.0040af00
mov dword [ebp - 0x348], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.004093c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.004093c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x328]
call fcn.00406470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00408f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00408f00
mov eax, dword [ebp - 0x348]
jmp 0x406452
mov dword [ebp - 0x34c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
call fcn.004093c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.004093c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x328]
call fcn.00406470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00408f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00408f00
mov eax, dword [ebp - 0x34c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a9fe
mov esp, ebp
pop ebp
ret