Function at 0x4851f0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bd96d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf8]
mov edi, dword [esp + 0xf4]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x18], ebx
mov dword [eax], esi
cmp dword [0x4dff18], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], esi
mov ebp, 0xf
jne 0x485299
push 4
push 0x4bfb44
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], bl
call fcn.00401e90
mov ebx, 1
lea eax, [esp + 0x34]
mov dword [esp + 0xec], esi
mov dword [esp + 0x18], ebx
jmp 0x48529e
mov eax, 0x4dff04
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], esi
mov byte [esp + 0xd4], 0
call fcn.00401cf0
test bl, 1
mov dword [esp + 0xec], 2
je 0x4852f8
and ebx, 0xfffffffe
cmp dword [esp + 0x4c], 0x10
jb 0x4852eb
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0048d433
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
lea edx, [esp + 0xa8]
push edx
call fcn.0046a740
add esp, 4
cmp dword [edi + 0x10], esi
mov byte [esp + 0xec], 3
mov dword [esp + 0x2c], esi
jle 0x485659
mov ebp, dword [esp + 0x20]
add edi, 0x7c
add ebp, 0x6b40
mov dword [esp + 0x1c], ebp
mov edi, edi
mov esi, dword [ebp]
mov eax, esi
cmp eax, esi
jae 0x485339
cmp dword [ebp + 4], 0x10
jb 0x485344
mov eax, dword [ebp - 0x10]
jmp 0x485347
lea eax, [ebp - 0x10]
push 0
push 0x4bf904
push eax
call fcn.00419fd0
add esp, 0xc
test eax, eax
jne 0x485368
test esi, esi
setne al
test eax, eax
je 0x485457
push edi
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00425df0
add esp, 0xc
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0xec], 4
jb 0x485395
mov eax, dword [eax + 4]
jmp 0x485398
add eax, 4
push eax
call fcn.00469fd0
add esp, 4
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x68], esi
mov byte [esp + 0xec], 3
jb 0x4853c3
mov edx, dword [esp + 0x54]
push edx
call fcn.0048d433
add esp, 4
cmp byte [esp + 0x17], 0
je 0x48545c
cmp dword [esp + 0xdc], esi
mov eax, dword [esp + 0xc8]
jae 0x4853e5
lea eax, [esp + 0xc8]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [edx + 0xd55c]
push 0x4c3900
push eax
call fcn.00478160
add esp, 0x10
cmp dword [esp + 0xc0], esi
jb 0x485419
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0xdc], esi
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], 0
mov byte [esp + 0xac], 0
jb 0x485450
mov edx, dword [esp + 0xc8]
push edx
call fcn.0048d433
add esp, 4
xor eax, eax
jmp 0x48577b
mov esi, 0x10
cmp dword [edi - 0x3c], esi
lea eax, [edi - 0x50]
jb 0x485466
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.0041be30
test eax, eax
jl 0x485620
fld qword [edi - 0x5c]
imul eax, eax, 0x88
fsub qword [eax + esi + 0x20]
fcomp qword [0x4c0980]
lea ebp, [eax + esi + 0x20]
fnstsw ax
test ah, 0x41
je 0x485576
push edi
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.00425df0
lea esi, [edi - 0x54]
push esi
push eax
lea edx, [esp + 0x64]
or ebx, 2
push edx
mov byte [esp + 0x104], 5
mov dword [esp + 0x30], ebx
call fcn.00425df0
add esp, 0x18
or ebx, 4
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0xec], 6
mov dword [esp + 0x18], ebx
jb 0x4854f0
mov eax, dword [eax + 4]
jmp 0x4854f3
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x485576
push edi
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00425df0
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x88], esp
push esi
push eax
or ebx, 8
push edx
mov dword [esp + 0x114], 7
mov dword [esp + 0x40], ebx
call fcn.00425df0
mov ecx, dword [esp + 0x48]
add esp, 0xc
call fcn.00484dc0
cmp eax, dword [edi + 0x1c]
je 0x4856be
fld qword [edi - 0x5c]
fsub qword [ebp]
fld qword [0x4c0980]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4856bc
fcomp qword [0x4c38f8]
fnstsw ax
test ah, 0x41
jne 0x4856be
mov byte [esp + 0x17], 1
test bl, 8
mov esi, 0x10
je 0x4855b9
and ebx, 0xfffffff7
cmp dword [esp + 0x88], esi
jb 0x48559e
mov eax, dword [esp + 0x74]
push eax
call fcn.0048d433
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
test bl, 4
je 0x4855e9
and ebx, 0xfffffffb
cmp dword [esp + 0x68], esi
jb 0x4855d4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048d433
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
test bl, 2
mov dword [esp + 0xec], 3
je 0x485615
and ebx, 0xfffffffd
cmp dword [esp + 0xa4], esi
jb 0x485615
mov edx, dword [esp + 0x90]
push edx
call fcn.0048d433
add esp, 4
cmp byte [esp + 0x17], 0
mov ebp, dword [esp + 0x1c]
je 0x485628
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, 1
add ebp, 0x88
add edi, 0x88
cmp eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
jl 0x485330
mov edi, ecx
mov ebp, 0xf
xor esi, esi
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x28]
cmp ecx, dword [eax + 0x10]
jle 0x4856c8
mov edi, 0x10
cmp dword [esp + 0xc0], edi
jb 0x485683
mov edx, dword [esp + 0xac]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
jb 0x4856b2
mov eax, dword [esp + 0xc8]
push eax
call fcn.0048d433
add esp, 4
mov eax, 1
jmp 0x48577b
fstp st(0)
mov byte [esp + 0x17], 0
jmp 0x48557b
fld qword [edi + 8]
mov edi, 0x10
fsub qword [eax + 8]
fcomp qword [0x4c0980]
fnstsw ax
test ah, 0x41
jne 0x48572f
cmp dword [esp + 0xc0], edi
jb 0x4856f9
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
jb 0x4856b2
mov edx, dword [esp + 0xc8]
push edx
call fcn.0048d433
add esp, 4
mov eax, 1
jmp 0x48577b
cmp dword [esp + 0xc0], edi
jb 0x485748
mov eax, dword [esp + 0xac]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
jb 0x485777
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0048d433
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0048de34
add esp, 0xdc
ret 0xc