Function at 0x459630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462c58
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xd8
mov eax, dword [0x4830ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x75], 1
and dword [ebp - 0x84], 0
and dword [ebp - 0x7c], 0
or dword [ebp - 0x88], 0xffffffff
and dword [ebp - 0x8c], 0
mov dword [ebp - 0xbc], 0x700000
push 0x4785e8
lea ecx, [ebp - 0x5c]
call fcn.004076ba
and dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00457d70
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00407592
mov byte [ebp - 4], 3
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.00407169
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x4596fb
mov byte [ebp - 0x7d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040eda4
mov al, byte [ebp - 0x7d]
jmp 0x459afc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc0], esp
push dword [ebp + 8]
call fcn.0040ede7
call fcn.0045a0e0
add esp, 0x18
lea eax, [ebp - 0x44]
push eax
push 0
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], esp
push dword [ebp + 8]
call fcn.0040ede7
lea eax, [ebp - 0x2c]
push eax
call fcn.0045a250
add esp, 0x28
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0xcc], 0x100000
and dword [ebp - 0x90], 0
push 0
lea eax, [ebp - 0x90]
push eax
push 0x100000
push 0x485c38
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x90], 0
jbe 0x4599a4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ede7
call fcn.00459ff0
add esp, 0x18
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0x700000
ja 0x4597ce
cmp dword [ebp - 0x8c], 0
jne 0x45985a
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp - 0x8c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd4], esp
push dword [ebp + 8]
call fcn.0040ede7
lea eax, [ebp - 0x74]
push eax
call fcn.0045a250
add esp, 0x28
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x2c]
call fcn.00411ae0
lea ecx, [ebp - 0x74]
call fcn.0040eda4
push 0x80
push 0x40
push 0x8101
lea ecx, [ebp - 0x2c]
call fcn.00407169
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0043d0c6
add esp, 0x14
mov dword [ebp - 0x94], eax
jmp 0x459884
push 0x80
push 0x40
push 0x8009
lea ecx, [ebp - 0x2c]
call fcn.00407169
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0043d0c6
add esp, 0x14
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4598e5
push dword [ebp - 0x88]
call fcn.0043c3d5
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x7c], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd8], esp
push dword [ebp + 8]
call fcn.0040ede7
call fcn.0045a0e0
add esp, 0x18
mov byte [ebp - 0x7e], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040eda4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040eda4
mov al, byte [ebp - 0x7e]
jmp 0x459afc
push 0x4785f8
push dword [ebp - 0x88]
call fcn.00401700
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x45995e
push dword [ebp - 0x88]
call fcn.0043c3d5
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x7c], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xdc], esp
push dword [ebp + 8]
call fcn.0040ede7
call fcn.0045a0e0
add esp, 0x18
mov byte [ebp - 0x7f], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040eda4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040eda4
mov al, byte [ebp - 0x7f]
jmp 0x459afc
push dword [ebp - 0x90]
push 0x485c38
push dword [ebp - 0x84]
call fcn.00401280
add esp, 0xc
push 0
lea eax, [ebp - 0x90]
push eax
push 0x100000
push 0x485c38
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x84]
call fcn.00401430
pop ecx
jmp 0x459774
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040eda4
jmp 0x4599ea
mov dword [ebp - 4], 2
jmp 0x4599fa
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
push dword [ebp + 8]
call fcn.00459b20
pop ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x98], eax
cvtsi2sd xmm0, dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x47a7f0]
mulsd xmm0, qword [0x47a7d0]
divsd xmm0, qword [0x47a7d8]
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.0043c0b0
pop ecx
pop ecx
call fcn.004570d0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0x9c]
jge 0x459aa7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe4], esp
push dword [ebp + 8]
call fcn.0040ede7
call fcn.0045a0e0
add esp, 0x18
push dword [ebp + 8]
call fcn.00458520
pop ecx
mov byte [ebp - 0x75], 0
movzx eax, byte [ebp - 0x75]
test eax, eax
je 0x459acc
push dword [ebp - 0x9c]
push dword [ebp + 8]
call fcn.00459cf0
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x459aca
mov byte [ebp - 0x75], 0
jmp 0x459ae7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push dword [ebp + 8]
call fcn.0040ede7
call fcn.0045a0e0
add esp, 0x18
mov al, byte [ebp - 0x75]
mov byte [ebp - 0x80], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040eda4
mov al, byte [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00430bde
leave
ret