Function at 0x4064a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a147
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x44e06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x449238
lea ecx, [ebp - 0x230]
call fcn.00409060
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x4492a0
lea ecx, [ebp - 0x230]
call fcn.00408d80
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0xffffffff
jne 0x40652a
mov dword [ebp - 0x338], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00408f00
mov eax, dword [ebp - 0x338]
jmp 0x40682a
mov eax, dword [ebp - 0x334]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x230]
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 0x406621
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 0x406621
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 0x4065f9
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 0x4065a9
push 0xb0
lea ecx, [ebp - 0x328]
call fcn.00403e50
push 1
push 0x40
push 2
push 0x4492b0
lea ecx, [ebp - 0x328]
call fcn.004096f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.004090d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.004090d0
mov byte [ebp - 4], 4
push 0x450174
push 0x4492a4
lea ecx, [ebp - 0x364]
push ecx
call fcn.00411ac0
add esp, 0xc
mov dword [ebp - 0x340], eax
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x260]
call fcn.00408f50
lea ecx, [ebp - 0x364]
call fcn.00408f00
push 0x45013c
push str.BIN
lea eax, [ebp - 0x37c]
push eax
call fcn.00411ac0
add esp, 0xc
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00408f50
lea ecx, [ebp - 0x37c]
call fcn.00408f00
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 0x40674e
push 0x412110
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x328]
push eax
call fcn.004120e0
add esp, 8
mov ecx, eax
call fcn.0040af00
push 0x412110
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x328]
push edx
call fcn.004120e0
add esp, 8
mov ecx, eax
call fcn.0040af00
lea ecx, [ebp - 0x328]
call fcn.00409660
jmp 0x4067cc
push 0x4120b0
push str.Error_opening_file_for_output
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 - 0x248]
call fcn.00408f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00408f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x328]
call fcn.00406850
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00408f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00408f00
mov eax, dword [ebp - 0x348]
jmp 0x40682a
mov dword [ebp - 0x34c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00408f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00408f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x328]
call fcn.00406850
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00408f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
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