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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462e00
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41844a
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebp
lea eax, [esp + 8]
push esi
push eax
call fcn.00417d80
push 0
lea ecx, [esp + 0x14]
push 0x467a3c
push ecx
mov dword [esp + 0x2c], 0
call fcn.004148d0
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x14
push 0
push edx
call ebp
test eax, eax
jne 0x41861c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
cmp esi, 3
je 0x4184db
or edx, 0xffffffff
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp esi, 0xb7
je 0x418636
test edx, edx
jg 0x4184c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
push eax
call fcn.004017d0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], esi
mov edi, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
mov byte [esp + 0x1c], cl
sub ecx, edi
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x418516
push edi
lea ecx, [esp + 0x14]
call fcn.00401780
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x418525
push 0x80070057
call fcn.00401140
mov dword [esi - 0xc], edi
push esi
mov word [esi + 0x208], 0
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call fcn.0042a6a5
add esp, 4
test eax, eax
jl 0x41851b
cmp eax, dword [esi - 8]
jg 0x41851b
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], 0
call fcn.00418410
mov edi, eax
add esp, 4
test edi, edi
je 0x4185bb
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418581
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
push 0
push eax
call ebp
test eax, eax
je 0x4185ee
lea ecx, [esp + 0x10]
call fcn.004016f0
lea ecx, [esp + 0xc]
call fcn.004016f0
pop edi
pop ebp
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.004016f0
lea ecx, [esp + 0xc]
call fcn.004016f0
pop edi
pop ebp
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop ebp
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret