Function at 0x418db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49c4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401630
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [esp + 0x14]
call fcn.004197f0
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x41903e
mov ecx, dword [0x4da2e4]
push ecx
call edi
cmp eax, 0xffffffff
je 0x41903e
push esi
call fcn.00419db0
mov ecx, 0x4da2e4
call fcn.00419080
test eax, eax
jne 0x418e50
push 0x4da2e4
call fcn.0040d010
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x40], 1
mov eax, dword [0x4da2e4]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
call fcn.00401630
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [esp + 0x18]
call fcn.004197f0
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
jne 0x418ea5
push 0x80004005
call fcn.00401b40
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00473c01
add esp, 8
cmp eax, ebx
jne 0x418fe9
cmp dword [ebp + 8], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
je 0x418f0f
mov eax, dword [0x4da2e4]
push eax
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c90
lea ecx, [esp + 0x18]
lea edi, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.00404250
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push eax
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00401c90
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x24]
mov byte [esp + 0x40], 4
call fcn.00404250
mov eax, dword [esp + 0x10]
mov ecx, edi
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00401630
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.004194c0
mov edi, eax
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418f7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.00404220
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418fd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x418ffb
call fcn.00419950
mov edi, eax
jmp 0x418f7c
lea ecx, [esp + 0x24]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00401630
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.004194c0
mov edi, eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x418f95
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419066
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4