Function at 0x480010
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4af9f9
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x500de4
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
mov dword [esp + 0x9c], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
mov byte [esp + 0x9c], 1
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
cmp dword [esi + 0xb0], ebx
mov byte [esp + 0x9c], 2
je 0x47ff6a
mov eax, dword [esi + 0xac]
mov eax, dword [eax]
lea ebx, [esi + 0xa8]
mov ebp, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
lea esp, [esp]
test ebx, ebx
mov ecx, dword [esi + 0xac]
lea eax, [esi + 0xa8]
mov dword [esp + 0x2c], ecx
je 0x47fe58
cmp ebx, eax
je 0x47fe5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x2c]
je 0x47ff65
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x47fe74
call edi
cmp ebp, dword [ebx + 4]
jne 0x47fe7b
call edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00405e10
cmp ebp, dword [ebx + 4]
jne 0x47fe8f
call edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.00405e10
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x58]
push ebx
push edx
lea eax, [esp + 0x20]
push str._sksearch_s
push eax
call fcn.00405e90
mov edi, dword [esp + 0x28]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47fef6
mov edi, dword [esp + 0x1c]
push edi
push ebx
mov ecx, esi
call fcn.0047f9c0
test eax, eax
jne 0x47ff4f
push edi
push ebx
mov ecx, esi
call fcn.0047f9c0
lea ecx, [esp + 0x20]
call fcn.0040ffe0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x47fe40
lea ecx, [esp + 0x30]
call fcn.00480310
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 3
call fcn.00480da0
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x47ff28
push eax
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x47ff3e
push edi
push ebx
mov ecx, esi
call fcn.0047f9c0
test eax, eax
jne 0x47ff3e
push edi
push ebx
mov ecx, esi
call fcn.0047f9c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 2
call fcn.004809e0
lea ecx, [esp + 0x20]
call fcn.0040ffe0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x47fe40
mov ebx, 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x9c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ff92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x9c], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ffb6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ffe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x8c
ret
push esi
mov esi, ecx
call fcn.0047fc10
lea eax, [esi + 0xa8]
push eax
mov ecx, esi
call fcn.0047f770
mov ecx, esi
pop esi
jmp 0x47fd80