Function at 0x459454
Capabilities:
Create directory

Disassembly:
sub esp, 0xa84
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa94]
mov ebp, eax
mov ebx, eax
test esi, esi
je 0x459740
cmp word [esi], ax
je 0x459740
push edi
mov edi, dword [esp + 0xa9c]
test edi, edi
je 0x45973f
cmp word [edi], ax
je 0x45973f
push 0x104
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00478cf5
xor eax, eax
mov word [esp + 0x228], ax
lea eax, [esp + 0x20]
push eax
call fcn.00431db2
add esp, 0x10
push 0x5c
pop ecx
cmp word [esp + eax*2 + 0x12], cx
jne 0x4594cc
xor ecx, ecx
mov word [esp + eax*2 + 0x12], cx
push 0x104
lea eax, [esp + 0x474]
push esi
push eax
call fcn.00478cf5
xor eax, eax
mov word [esp + 0x684], ax
lea eax, [esp + 0x47c]
push eax
call fcn.00431db2
add esp, 0x10
test eax, eax
je 0x45951e
push 0x5c
pop ecx
cmp word [esp + eax*2 + 0x46e], cx
je 0x45951e
lea eax, [esp + 0x470]
push 0x485398
push eax
call fcn.00478cc4
pop ecx
pop ecx
lea eax, [esp + 0x470]
push eax
lea eax, [esp + 0x88c]
push eax
call fcn.00478ca2
mov esi, dword [esp + 0xaa8]
pop ecx
pop ecx
mov ecx, 0x48acfc
test esi, esi
je 0x45954c
xor eax, eax
cmp word [esi], ax
jne 0x459553
mov dword [esp + 0xaa0], ecx
push ecx
lea eax, [esp + 0x474]
push eax
call fcn.00478cc4
pop ecx
pop ecx
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x459594
mov esi, dword [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
test esi, 0x10
setne bl
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x45973f
test ebx, ebx
jne 0x4595e0
lea eax, [esp + 0x14]
push eax
call fcn.00431db2
pop ecx
cmp word [esp + eax*2 + 0x12], 0x3a
je 0x4595e0
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x459734
mov esi, dword [esp + 0xaa0]
xor ebp, ebp
mov ebx, dword [esp + 0x10]
inc ebp
lea eax, [esp + 0x888]
push eax
lea eax, [esp + 0x680]
push eax
call fcn.00478ca2
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x688]
push eax
call fcn.00478cc4
push 0x104
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00478cf5
xor eax, eax
mov word [esp + 0x238], ax
lea eax, [esp + 0x30]
push eax
call fcn.00431db2
add esp, 0x20
test eax, eax
je 0x45965e
push 0x5c
pop ecx
cmp word [esp + eax*2 + 0x12], cx
je 0x45965e
lea eax, [esp + 0x14]
push 0x485398
push eax
call fcn.00478cc4
pop ecx
pop ecx
lea eax, [esp + 0x24c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00478cc4
test byte [esp + 0x228], 0x10
pop ecx
pop ecx
je 0x4596d6
test byte [esp + 0xaa4], 1
je 0x45971b
lea eax, [esp + 0x24c]
push 0x48ad04
push eax
call fcn.00478d35
pop ecx
pop ecx
test eax, eax
je 0x45971b
lea eax, [esp + 0x24c]
push 0x485248
push eax
call fcn.00478d35
pop ecx
pop ecx
test eax, eax
je 0x45971b
push dword [esp + 0xaa4]
lea eax, [esp + 0x18]
push esi
push eax
lea eax, [esp + 0x688]
push eax
call fcn.00459454
jmp 0x459719
push esi
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x45971b
test byte [esp + 0xaa4], 2
je 0x459703
push pe_nt_image_headers32
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and ebp, eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4595ee
jmp 0x459738
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xa84
ret 0x10