Function at 0x470f90
Capabilities:
Create directory

Disassembly:
sub esp, 0x4c
mov eax, dword [0x520b38]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x10], 0
je 0x4711f0
cmp dword [esi + 0x14], 8
jb 0x470fbf
mov eax, dword [esi]
jmp 0x470fc1
mov eax, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea ecx, [esp + 0x2c]
push ecx
push 0
push eax
call ebx
test eax, eax
jne 0x4711db
push 8
push eax
push 0x4ea2bc
mov ecx, esi
call fcn.0047c5e0
mov ecx, esi
test eax, eax
jne 0x471022
push 1
push 1
push 8
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x5c
push eax
mov dword [esp + 0x18], 0x5c
call fcn.0047c5e0
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0047c5e0
lea ecx, [eax + 1]
jmp 0x471095
push 0
push 0x4ea2b0
call fcn.0047c590
mov ecx, esi
test eax, eax
jne 0x471067
push 1
push 1
push 2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x5c
push eax
mov dword [esp + 0x1c], 0x5c
call fcn.0047c5e0
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0047c5e0
lea ecx, [eax + 1]
jmp 0x471095
push 0
push 0x4ea2d0
call fcn.0047c590
mov ecx, eax
cmp ecx, 0xffffffff
je 0x47107f
add ecx, 2
jmp 0x471095
push 0
push 0x4ea2ac
mov ecx, esi
call fcn.0047c590
mov ecx, eax
cmp ecx, 0xffffffff
je 0x471095
inc ecx
xor eax, eax
mov dword [esp + 8], 0x5c
push edi
cmp ecx, 0xffffffff
push 1
cmovne eax, ecx
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0047c5e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4710bf
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x10]
ja 0x4711c5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
push edi
push 0
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0047cc40
cmp dword [esp + 0x2c], 0
je 0x47111b
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
call ebx
test eax, eax
jne 0x47111b
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push dword [esp + 0x18]
cmovae eax, dword [esp + 0x20]
push eax
call ebp
test eax, eax
je 0x47116d
mov ebx, dword [esi + 0x10]
cmp edi, ebx
je 0x471195
push 1
lea eax, [edi + 1]
mov dword [esp + 0x14], 0x5c
push eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0047c5e0
mov edi, eax
mov eax, dword [esp + 0x30]
cmp edi, 0xffffffff
cmove edi, ebx
cmp eax, 8
jb 0x47115d
push 2
inc eax
push eax
push dword [esp + 0x24]
call fcn.00438760
add esp, 0xc
cmp edi, dword [esi + 0x10]
ja 0x4711ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
jmp 0x4710d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0046d780
pop ebp
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004c35dc
add esp, 0x4c
ret 8
mov eax, dword [esp + 0x30]
cmp eax, 8
jb 0x4711ae
push 2
inc eax
push eax
push dword [esp + 0x24]
call fcn.00438760
add esp, 0xc
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004c35dc
add esp, 0x4c
ret 8
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004c35dc
add esp, 0x4c
ret 8
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004c35dc
add esp, 0x4c
ret 8
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004c35dc
add esp, 0x4c
ret 8