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

Disassembly:
push 0xffffffffffffffff
push 0x431c00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x440750]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x440750]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.0040a110
xor ebp, ebp
xor eax, eax
mov word [esp + 0x34], ax
mov eax, esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40a3b0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00406130
mov byte [esp + 0x58], 1
cmp dword [esp + 0x64], ebp
je 0x40a403
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx]
mov eax, dword [esi + 4]
lea edx, [esp + 0x30]
push edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040a280
push 1
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040a1e0
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov dword [ecx], edi
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.00409d90
test eax, eax
je 0x40a451
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
lea ecx, [esp + 0x20]
call fcn.0040a280
push 1
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040a1e0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [eax], edi
call fcn.00409d90
test eax, eax
jne 0x40a413
mov edx, dword [esp + 0x28]
mov esi, dword [edx]
mov ebx, dword [esp + 0x14]
jmp 0x40a460
mov edi, dword [esp + 0x28]
cmp ebx, ebp
je 0x40a46e
cmp ebx, dword [esp + 0x14]
je 0x40a473
call fcn.004250ad
cmp esi, edi
je 0x40a4ff
cmp ebx, ebp
jne 0x40a49f
call fcn.004250ad
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40a490
call fcn.004250ad
mov edi, 8
cmp dword [esi + 0x20], edi
jb 0x40a4a3
mov eax, dword [esi + 0xc]
jmp 0x40a4a6
mov eax, dword [ebx]
jmp 0x40a486
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a4df
cmp ebx, ebp
jne 0x40a4d0
call fcn.004250ad
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40a4c6
call fcn.004250ad
cmp dword [esi + 0x20], edi
jb 0x40a4d4
mov eax, dword [esi + 0xc]
jmp 0x40a4d7
mov eax, dword [ebx]
jmp 0x40a4bc
lea eax, [esi + 0xc]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ebx, ebp
jne 0x40a4fb
call fcn.004250ad
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40a4f4
call fcn.004250ad
mov esi, dword [esi]
jmp 0x40a460
mov eax, dword [ebx]
jmp 0x40a4ea
cmp dword [esp + 0x48], 8
jb 0x40a513
mov eax, dword [esp + 0x34]
push eax
call fcn.004240fa
add esp, 4
xor ecx, ecx
mov word [esp + 0x34], cx
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
call fcn.0040a180
mov edx, dword [esp + 0x28]
push edx
call fcn.004240fa
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x30], ebp
call fcn.004240fa
add esp, 8
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0042497b
add esp, 0x48
ret 8