Function at 0x486dc0
Capabilities:
Check if file exists
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a4869
mov eax, dword fs:[0]
push eax
mov eax, 0x1043c
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x10438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x10450]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1046c]
mov edi, dword [esp + 0x10474]
mov esi, dword [esp + 0x10460]
mov ebp, dword [esp + 0x10470]
mov ebx, dword [esp + 0x10478]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
push 0
mov dword [esp + 0x1045c], 2
call fcn.004f8fbf
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10468]
add esp, 4
push eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486e77
mov ecx, dword [esp + 0x10464]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x486f2f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10468]
push ebx
push 0
push edi
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004868b0
mov esi, eax
mov byte [esp + 0x10458], 1
mov eax, dword [esp + 0x10464]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486ecf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10458], 0
mov eax, dword [esp + 0x10468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10458], 0xffffffff
mov eax, dword [esp + 0x1047c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486f28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x487551
mov eax, dword [esp + 0x10468]
push 0
push ebx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
call fcn.004073f0
add eax, 0x10
push esi
mov dword [ebx], eax
call fcn.00487580
mov ecx, dword [esp + 0x10468]
push ecx
lea esi, [esp + 0x1c4]
call fcn.00490170
push 0
mov byte [esp + 0x1045c], 3
call fcn.004f8fbf
add esp, 4
push 0x81b6
mov dword [esp + 0xb4], edx
lea edx, [esp + 0x10410]
push 0x5f4be0
push edx
mov dword [esp + 0xb8], eax
call fcn.004f9d9b
lea eax, [esp + 0x10418]
add esp, 0xc
lea ecx, [eax + 1]
jmp 0x486fb0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x486fb0
sub eax, ecx
mov esi, eax
mov eax, dword [esp + 0x1d4]
mov dword [esp + 0x1c], eax
add eax, esi
mov dword [esp + 0x4c], eax
push 0x2710
lea eax, [esp + 0x4c]
push eax
mov ebx, 8
mov dword [esp + 0x50], 0x444e4553
call fcn.004a9eac
cmp eax, ebx
jne 0x487497
cmp dword [esp + 0x1d8], 0x10
mov eax, dword [esp + 0x1c4]
jae 0x487008
lea eax, [esp + 0x1c4]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
push 0x2710
push eax
call fcn.004a9eac
cmp eax, ebx
jne 0x487497
push 0x2710
lea ecx, [esp + 0x10410]
push ecx
mov ebx, esi
call fcn.004a9eac
cmp eax, esi
jne 0x487497
mov edx, dword [esp + 0x1047c]
mov eax, dword [esp + 0x10464]
xor ebx, ebx
cmp dword [edx - 0xc], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push eax
setne byte [esp + 0x37]
mov dword [esp + 0x420], ebx
mov dword [esp + 0x424], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov edx, edi
lea esi, [esp + 0x80]
mov dword [esp + 0x40], edi
call fcn.0047d4c0
mov byte [esp + 0x10458], 4
cmp edi, 0xffffffff
jne 0x4870e3
mov ecx, esi
push ecx
call fcn.0047d4d0
add esp, 4
lea ecx, [esp + 0x1c0]
call fcn.00409b60
lea ecx, [esp + 0x10464]
call fcn.00406760
lea ecx, [esp + 0x10468]
call fcn.00406760
lea ecx, [esp + 0x1047c]
call fcn.00406760
jmp 0x48754f
lea edx, [esp + 0x44]
push edx
push edi
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0x10000
lea ecx, [esp + 0x418]
push ecx
push edi
xor esi, esi
mov dword [esp + 0x418], 0x41544144
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4872f8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4872f8
mov edi, dword [esp + 0x24]
push 0x7530
lea edx, [esp + 0x408]
lea ebx, [eax + 8]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x410], eax
call fcn.004a9eac
cmp eax, ebx
jne 0x4872e3
mov eax, dword [esp + 0x3c]
add esi, dword [esp + 0x28]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x28], esi
test edi, edi
ja 0x48717f
test ebx, ebx
jbe 0x4872b2
cmp dword [esp + 0x10480], 0
je 0x4872b2
mov ecx, esi
add ecx, dword [ebp]
mov edx, 0
adc edx, dword [ebp + 4]
mov dword [esp + 0x5c], ecx
mov eax, edx
mov esi, edx
and eax, 0x7fffffff
and esi, 0x80000000
mov dword [esp + 0x60], eax
fild qword [esp + 0x5c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], 0
fild qword [esp + 0x74]
mov eax, edi
mov esi, edi
and eax, 0x7fffffff
fchs
and esi, 0x80000000
faddp st(1)
mov dword [esp + 0x70], eax
fld qword [0x6005b8]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
fmul st(1), st(0)
mov dword [esp + 0x64], 0
fild qword [esp + 0x6c]
fild qword [esp + 0x64]
fchs
faddp st(1)
fdivp st(2)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x48720f
fstp st(1)
jmp 0x487211
fstp st(0)
mov eax, dword [esp + 0x10464]
fstp qword [esp + 0x1dc]
lea ebx, [esp + 0x1fc]
sub ebx, eax
jmp 0x487230
movzx esi, word [eax]
mov word [eax + ebx], si
add eax, 2
test si, si
jne 0x487230
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
push 0
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1ec], edi
mov dword [esp + 0x1f0], ecx
mov dword [esp + 0x1f4], edx
call fcn.004f8fbf
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
sub esi, dword [esp + 0x38]
mov ecx, dword [ecx + 4]
sbb ecx, dword [esp + 0x3c]
add esi, eax
adc ecx, edx
sub esp, 0x224
mov dword [esp + 0x420], ecx
mov dword [esp + 0x41c], esi
mov edi, esp
lea edx, [esp + 0x106a8]
mov ecx, 0x8a
lea esi, [esp + 0x404]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0048dd70
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
push 0
lea eax, [esp + 0x20]
push eax
push 0x10000
lea ecx, [esp + 0x418]
push ecx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48712a
jmp 0x4872f8
cmp byte [esp + 0x1b], 0
je 0x4872f8
mov edi, dword [esp + 0x20]
mov eax, 0x65f0d0
call fcn.00406fe0
cmp dword [esp + 0x2c], esi
je 0x487320
cmp byte [esp + 0x1b], 0
je 0x487313
mov edi, dword [esp + 0x20]
mov eax, 0x65f0d0
call fcn.00406fe0
lea eax, [esp + 0x80]
push eax
jmp 0x4870a6
add dword [ebp], esi
lea ecx, [esp + 0x80]
push ecx
adc dword [ebp + 4], 0
mov byte [esp + 0x1045c], 3
call fcn.0047d4d0
add esp, 4
push 0
call fcn.004f8fbf
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
add esp, 4
sub eax, dword [esp + 0x34]
push 0x7530
sbb edx, dword [esp + 0x3c]
add dword [ecx], eax
lea eax, [esp + 0x4c]
push eax
adc dword [ecx + 4], edx
mov edx, dword [esp + 0xb4]
mov ebx, 8
mov dword [esp + 0x50], 0x454e4f44
mov dword [esp + 0x54], edx
call fcn.004a9eac
test eax, eax
jge 0x4873a7
cmp byte [esp + 0x1b], 0
je 0x4870ae
mov edi, dword [esp + 0x20]
mov eax, 0x65f0d0
call fcn.00406fe0
jmp 0x4870ae
lea ecx, [esp + 0x48]
mov eax, edi
call fcn.004842f0
test eax, eax
jne 0x487389
mov eax, dword [esp + 0x48]
cmp eax, 0x59414b4f
je 0x48745d
cmp eax, 0x4c494146
jne 0x4870ae
mov esi, dword [esp + 0x4c]
cmp esi, 0x100
jle 0x4873e1
mov esi, 0x100
push 0x2710
push esi
lea ecx, [esp + 0x414]
push ecx
call fcn.004a9f07
cmp eax, esi
jne 0x487389
push 3
lea eax, [esp + 0x410]
lea edx, [esp + 0xc4]
push eax
lea eax, [esp + 0xc4]
mov byte [esp + esi + 0x414], 0
mov dword [esp + 0xc4], edx
call fcn.00410760
mov edi, dword [esp + 0x20]
mov byte [esp + 0x10458], 5
mov edx, dword [esp + 0xbc]
call fcn.00406780
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x4870ae
push eax
call fcn.004f6d01
jmp 0x4870ab
lea ecx, [esp + 0x1c0]
call fcn.00409b60
lea ecx, [esp + 0x10464]
call fcn.00406760
lea ecx, [esp + 0x10468]
call fcn.00406760
lea ecx, [esp + 0x1047c]
call fcn.00406760
mov eax, 1
jmp 0x487551
cmp dword [esp + 0x1d8], 0x10
jb 0x4874b1
mov edx, dword [esp + 0x1c4]
push edx
call fcn.004f6734
add esp, 4
mov byte [esp + 0x10458], 1
mov eax, dword [esp + 0x10464]
xor ebx, ebx
add eax, 0xfffffff0
mov dword [esp + 0x1d8], 0xf
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4874f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10458], bl
mov eax, dword [esp + 0x10468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10458], 0xffffffff
mov eax, dword [esp + 0x1047c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48754f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10438]
xor ecx, esp
call fcn.004f673f
add esp, 0x10448
ret 0x28