Function at 0x450140
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x56b114]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4d4], eax
test ebx, ebx
je 0x450428
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450428
test al, 0x10
jne 0x450428
push 0
push ebx
call fcn.004a8ea1
mov edi, eax
add esp, 8
test edi, edi
je 0x450428
lea eax, [ebp - 0x4d0]
push eax
push 0xffffffffffffffff
push edi
call fcn.004a8d91
add esp, 0xc
test eax, eax
jne 0x450428
mov eax, dword [ebp - 0x4d0]
xor esi, esi
mov dword [ebp - 0x4d8], eax
test eax, eax
jle 0x4503e2
nop
lea eax, [ebp - 0x2a0]
push eax
push esi
push edi
call fcn.004a8d91
add esp, 0xc
test eax, eax
jne 0x450428
mov eax, dword [ebp - 0x94]
test al, 0x10
je 0x4502e0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040dc30
mov edx, dword [ebp - 0x4d4]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
call fcn.0040e810
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x450270
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450266
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450479
push edx
push ecx
call fcn.004c3d01
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x450280
test al, 0x10
jne 0x45029d
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x4503f2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4503d5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4502d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450479
push edx
push ecx
call fcn.004c3d01
add esp, 8
jmp 0x4503d5
test al, 0x20
je 0x4503d5
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040dc30
mov edx, dword [ebp - 0x4d4]
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 4], 1
call fcn.0040e810
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45034e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x450344
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450479
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
push edi
mov dword [ebp - 0x44], 7
call fcn.004a92fb
add esp, 0xc
test eax, eax
jne 0x450448
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4503c1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4503b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450479
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
inc esi
cmp esi, dword [ebp - 0x4d8]
jl 0x4501e0
push edi
call fcn.004a8610
add esp, 4
mov eax, 1
jmp 0x45042a
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x450428
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45041e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450479
push edx
push ecx
call fcn.004c3d01
add esp, 8
xor eax, eax
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.004c360c
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x450428
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45041e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45041e
call fcn.004cac9c
call fcn.004cac9c
int3