Function at 0x459190
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bbc9
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5a4eec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x290], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4591fd
mov eax, dword [edi]
jmp 0x4591ff
mov eax, edi
mov byte [eax], 0
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
movq qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x288], 1
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov esi, dword [ebp - 0x21c]
xor ecx, ecx
mov dword [ebp - 0x284], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x218]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x45963b
xor ebx, ebx
lea eax, [esi + ebx]
push str._gliid
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00453a00
add esp, 0xc
cmp dword [ebp - 0x26c], 0x10
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45933d
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00517500
add esp, 0xc
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x26c], 0x10
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x459333
push 0
lea eax, [ebp - 0x220]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
test eax, eax
jne 0x459387
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
call fcn.0044b890
mov ecx, dword [ebp - 0x218]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x21c]
add ebx, 0x18
inc dword [ebp - 0x284]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x284]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x459281
jmp 0x45963b
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x268]
call fcn.0044b730
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x224], 0xf
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
call fcn.0044dd80
mov byte [ebp - 4], 5
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 0x10
mov edx, 0x5a5868
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
push ecx
xor ecx, ecx
call fcn.00454c30
add esp, 0xc
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x250]
push 0xffffffffffffffff
push 0
push eax
call fcn.0044dd80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x45949e
mov ecx, dword [ebp - 0x238]
inc eax
cmp eax, 0x1000
jb 0x459495
test cl, 0x1f
je 0x459471
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45947d
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x459489
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x459493
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
add esp, 4
mov ecx, dword [ebp - 0x28c]
lea edx, [ebp - 0x250]
push edx
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
push eax
mov ecx, edi
call fcn.0044b900
mov eax, dword [ebp - 0x294]
cmp eax, 0x10
jb 0x45950f
mov ecx, dword [ebp - 0x2a8]
inc eax
cmp eax, 0x1000
jb 0x459506
test cl, 0x1f
je 0x4594e2
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4594ee
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x4594fa
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x459504
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
add esp, 4
mov eax, dword [ebp - 0x23c]
cmp eax, 0x10
jb 0x45955f
mov ecx, dword [ebp - 0x250]
inc eax
cmp eax, 0x1000
jb 0x459556
test cl, 0x1f
je 0x459532
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x45953e
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x45954a
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x459554
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
add esp, 4
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
cmp eax, 0x10
jb 0x4595ca
mov ecx, dword [ebp - 0x268]
inc eax
cmp eax, 0x1000
jb 0x4595c1
test cl, 0x1f
je 0x45959d
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4595a9
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x4595b5
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x4595bf
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
add esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
cmp eax, 0x10
jb 0x459635
mov ecx, dword [ebp - 0x280]
inc eax
cmp eax, 0x1000
jb 0x45962c
test cl, 0x1f
je 0x459608
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x459614
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x459620
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x45962a
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
add esp, 4
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x45967c
push dword [ebp - 0x290]
mov edx, dword [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00454950
mov ecx, dword [ebp - 0x214]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x21c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
call fcn.00454650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514739
mov esp, ebp
pop ebp
ret 4