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

Disassembly:
push 0x12c
mov eax, 0x47612f
call fcn.00472eab
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x108], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], fcn.0044a0e0
mov dword [ebp - 0x78], fcn.0044a1a0
mov dword [ebp - 0x74], 0x44a2d0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0xf4], 0x44a3a0
mov dword [ebp - 0xf0], fcn.0044a400
mov dword [ebp - 0xec], 0x44a510
mov dword [ebp - 0xe8], ebx
test esi, esi
jne 0x426410
mov ecx, 0x80070057
mov esi, ecx
jmp 0x42660b
test eax, eax
je 0x426404
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 - 0xf8]
call fcn.0042776b
cmp dword [ebp - 0xf8], 0
jne 0x426446
mov esi, 0x8007000e
jmp 0x426609
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 - 0x108]
call fcn.004169d2
mov esi, dword [ebp - 0x108]
test esi, esi
je 0x4265fa
cmp esi, 0xffffffff
je 0x4265fa
lea eax, [ebp - 0x124]
mov dword [ebp - 0x100], ebx
push eax
push esi
mov dword [ebp - 0x104], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4265fa
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], edx
cmp edx, ebx
jl 0x4265d1
jle 0x4265c9
mov ecx, 0x100000
mov dword [ebp - 0xfc], ecx
cmp edx, ebx
jg 0x4264e5
jl 0x4264dd
cmp eax, ecx
jae 0x4264e5
mov ecx, eax
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], ebx
push eax
push ecx
push dword [ebp - 0xf8]
mov dword [ebp - 0x134], ebx
push esi
mov dword [ebp - 0x128], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4265fa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0xfc], eax
jne 0x4265f3
cmp dword [ebp - 0x70], 0
jne 0x42656f
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push eax
mov ecx, ebx
call dword [0x47d838]
call ebx
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x70], 1
mov ebx, dword [ebp - 0x78]
mov ecx, ebx
push eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x6c]
push eax
call dword [0x47d838]
call ebx
xor ecx, ecx
call fcn.0042757e
mov ecx, dword [ebp - 0xfc]
add dword [ebp - 0x100], ecx
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x110]
push 0
pop ebx
adc dword [ebp - 0x104], ebx
sub eax, ecx
mov dword [ebp - 0x10c], eax
sbb edx, ebx
mov dword [ebp - 0x110], edx
cmp edx, ebx
jg 0x4264c8
jl 0x4265d1
cmp eax, ebx
ja 0x4264c8
push dword [ebp - 0x11c]
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call dword [0x47d838]
call esi
xor ecx, ecx
call fcn.0042757e
xor esi, esi
jmp 0x426610
mov esi, 0x80004005
jmp 0x426609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042754e
mov esi, eax
mov ecx, esi
call fcn.00427566
mov ecx, esi
call fcn.0042757e
lea ecx, [ebp - 0x108]
call fcn.00416f58
lea ecx, [ebp - 0xf8]
call fcn.0041702b
mov eax, esi
call fcn.00472e69
ret 8