Function at 0x430298
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x134
mov eax, 0x48929a
call fcn.0047ceef
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x100], ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x110], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x84], fcn.00457070
mov dword [ebp - 0x80], fcn.00457130
mov dword [ebp - 0x7c], 0x457260
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0xfc], 0x457330
mov dword [ebp - 0xf8], fcn.00457390
mov dword [ebp - 0xf4], 0x4574a0
test esi, esi
jne 0x430312
mov eax, 0x80070057
mov ebx, eax
push eax
jmp 0x430509
test eax, eax
je 0x430305
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x100]
call fcn.00432f2b
cmp dword [ebp - 0x100], 0
jne 0x430348
mov ebx, 0x8007000e
jmp 0x430508
push ebx
push 0x8000000
push 3
push ebx
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x110]
call fcn.0041a4ba
mov esi, dword [ebp - 0x110]
test esi, esi
je 0x4304fa
cmp esi, 0xffffffff
je 0x4304fa
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x108], ebx
push eax
push esi
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4304fa
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], edx
cmp edx, ebx
jl 0x4304d4
jle 0x4304cc
mov ecx, 0x100000
mov dword [ebp - 0x104], ecx
cmp edx, ebx
jg 0x4303e7
jl 0x4303df
cmp eax, ecx
jae 0x4303e7
mov ecx, eax
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x140], ebx
push eax
push ecx
push dword [ebp - 0x100]
mov dword [ebp - 0x13c], ebx
push esi
mov dword [ebp - 0x130], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4304fa
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x104], eax
jne 0x4304f3
cmp dword [ebp - 0x78], 0
jne 0x430474
mov ebx, dword [ebp - 0x84]
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call dword [0x4918b8]
call ebx
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x78], 1
mov ebx, dword [ebp - 0x80]
mov ecx, ebx
push eax
push dword [ebp - 0x100]
lea eax, [ebp - 0x74]
push eax
call dword [0x4918b8]
call ebx
xor ebx, ebx
push ebx
call fcn.00431467
mov ecx, dword [ebp - 0x104]
add dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x114]
adc dword [ebp - 0x10c], ebx
sub eax, ecx
mov edx, dword [ebp - 0x118]
sbb edx, ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], edx
cmp edx, ebx
jg 0x4303ca
jl 0x4304d4
cmp eax, ebx
ja 0x4303ca
push dword [ebp - 0x124]
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call dword [0x4918b8]
call esi
push ebx
call fcn.00431467
jmp 0x43050e
mov ebx, 0x80004005
jmp 0x430508
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov ebx, eax
push ebx
call fcn.004314fa
push ebx
call fcn.00431467
lea ecx, [ebp - 0x110]
call fcn.004316b4
lea ecx, [ebp - 0x100]
call fcn.0042dbea
mov eax, ebx
call fcn.0047cea1
ret 8