Function at 0x406590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41eb3a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x60], ebx
mov esi, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004051ca
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004021e4
test al, al
je 0x406610
call fcn.0040ac40
test al, al
jne 0x406610
lea ecx, [ebp - 0x40]
call fcn.0040192d
mov dword [ebp - 0x5c], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x406606
mov eax, dword [eax]
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.00401a21
mov eax, dword [0x42b7e0]
test al, 1
jne 0x40663e
or eax, 1
mov dword [0x42b7e0], eax
mov byte [ebp - 4], 1
push 0
call fcn.0041152c
push eax
call fcn.0041149b
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x42b7e0]
test al, 2
jne 0x40666a
or eax, 2
mov dword [0x42b7e0], eax
mov byte [ebp - 4], 2
call fcn.0041147a
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [0x42b7e4], edx
mov byte [ebp - 4], 0
mov eax, dword [0x42b7e0]
test al, 4
jne 0x406693
or eax, 4
mov dword [0x42b7e0], eax
mov byte [ebp - 4], 3
call fcn.0041147a
cdq
mov ecx, 0x1388
idiv ecx
mov dword [0x42b7e8], edx
mov byte [ebp - 4], 0
jmp 0x406699
mov edx, dword [0x42b7e8]
lea ecx, [ebp - 0x28]
call fcn.004021ec
mov byte [ebp - 4], 4
inc edx
push edx
push dword [0x42b7e4]
mov ecx, ebx
mov dword [0x42b7e8], edx
call fcn.0040512e
push eax
lea eax, [ebp - 0x28]
push str._sD._.03d._.03d
push eax
call fcn.004075d0
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.004021e4
test al, al
jne 0x4067ad
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x78]
call fcn.0040a610
add esp, 4
mov byte [ebp - 4], 5
mov ecx, esi
push eax
call fcn.00405162
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00401913
push 0
mov ecx, esi
call fcn.0040512e
push eax
call edi
test eax, eax
jne 0x4067f4
lea ecx, [ebp - 0x58]
call fcn.004021ec
mov byte [ebp - 4], 6
mov edx, ecx
mov ecx, esi
call fcn.0040b4d0
test al, al
je 0x406754
push 0
lea ecx, [ebp - 0x58]
call fcn.0040512e
push eax
call edi
test eax, eax
jne 0x4067e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00401913
call ebx
cmp eax, 0xb7
jne 0x4067ad
mov eax, dword [0x42b7e8]
mov ecx, dword [0x42b7e4]
inc eax
inc ecx
mov dword [0x42b7e8], eax
push eax
mov dword [0x42b7e4], ecx
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.0040512e
push eax
lea eax, [ebp - 0x28]
push str._sD._.03d._.03d
push eax
call fcn.004075d0
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.004021e4
test al, al
je 0x4066e8
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401913
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401913
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c4a7
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00401913
mov edx, 0x10
mov ecx, esi
call fcn.0040a250
mov bl, 1
jmp 0x4067af