Function at 0x459ad0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebx + 0x28]
cmp dword [edi - 0xc], 0
jne 0x459b02
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebx + 4]
xor esi, esi
mov dword [ebp - 0xe4], esi
test eax, eax
je 0x459b25
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x28]
lea esi, [ebx + 4]
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xec], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x459b32
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
inc edi
mov eax, edi
mul edx
push 0x4c2644
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042cdc8
add edi, edi
mov dword [ebp - 0xe8], eax
push edi
push 0
push eax
call fcn.00432c40
mov eax, dword [ebx + 0x28]
add esp, 0x14
shr edi, 1
je 0x459bbe
mov ecx, dword [ebp - 0xe8]
mov edx, SysReAllocString
mov esi, eax
sub edx, edi
sub esi, ecx
nop dword [eax + eax]
lea eax, [edx + edi]
test eax, eax
je 0x459bab
movzx eax, word [esi + ecx]
test ax, ax
je 0x459bab
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x459b90
mov esi, dword [ebp - 0xe4]
lea eax, [ecx - 2]
test edi, edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebp - 0xe8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459bdf
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459cfc
lea eax, [ebp - 0xdc]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xdc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00432c40
movzx eax, word [ebp - 0xd0]
push eax
movzx eax, word [ebp - 0xd2]
push eax
movzx eax, word [ebp - 0xd4]
push eax
movzx eax, word [ebp - 0xd6]
push eax
movzx eax, word [ebp - 0xda]
push eax
movzx eax, word [ebp - 0xdc]
push eax
push 0x4938dc
lea eax, [ebp - 0xcc]
push 0x400
push eax
call fcn.00430970
push 0x49391c
push dword [ebx + 0x28]
call fcn.0046f0e8
mov ecx, eax
add esp, 0x38
mov dword [ebp - 0xe0], ecx
test ecx, ecx
je 0x459cfc
cmp dword [ebx + 0x2c], 0
mov dword [ebp - 0xec], 1
je 0x459cb0
lea eax, [ebp - 0xcc]
push eax
push 0x493920
push ecx
call fcn.00459ec0
mov ecx, dword [ebp - 0xe0]
add esp, 0xc
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x20]
xor edi, edi
sub eax, dword [ebx + 0x1c]
sar eax, 2
test eax, eax
jle 0x459ce1
mov esi, eax
mov eax, dword [ebx + 0x1c]
push dword [eax + edi*4]
push ecx
call fcn.00459ec0
mov ecx, dword [ebp - 0xe0]
inc edi
add esp, 8
cmp edi, esi
jl 0x459cc1
mov esi, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xe0]
push edi
call fcn.0044a73e
push edi
call fcn.0044d543
mov edi, dword [ebp - 0xe8]
add esp, 8
test edi, edi
je 0x459d09
push edi
call fcn.0042cb6a
add esp, 4
lea edi, [ebx + 4]
test edi, edi
je 0x459d17
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
lea ecx, [ebx + 0x1c]
test edi, edi
cmove edi, eax
call fcn.00459e40
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x459d33
push edi
call ebx
test esi, esi
je 0x459d3a
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xec]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.0042c75e
mov esp, ebp
pop ebp
ret