Function at 0x42f4e0
Capabilities:
Get file size
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
mov eax, 0x4cc8d4
push ebx
push esi
push edi
call fcn.004ae0a4
mov word [ebp - 0x24], 8
mov edx, 0x4c9838
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
inc dword [ebp - 0x18]
mov eax, 0x4cc948
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], 0xffff
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x34], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 4], edx
lea ecx, [ebp - 0xb0]
push ecx
call sub.kernel32.dll_GetSystemInfo
mov dl, 1
mov eax, dword [0x4941a0]
call fcn.004222f4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov dl, 1
mov eax, dword [0x4941a0]
call fcn.004222f4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
call sub.kernel32.dll_InitializeCriticalSection
push 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x44], edx
jmp 0x42fabb
lea ecx, [ebp - 0x54]
push 0
push ecx
lea eax, [ebp - 0x50]
push 9
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x42f60e
call sub.kernel32.dll_GetLastError
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x34]
mov edx, 0x4cc7ff
push eax
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
lea eax, [ebp - 8]
mov word [ebp - 0x24], 0x14
call fcn.004bad00
inc dword [ebp - 0x18]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
cmp dword [ebp - 0x54], 9
jae 0x42f664
call sub.kernel32.dll_GetLastError
mov word [ebp - 0x24], 8
lea edx, [ebp - 0x34]
lea eax, [ebp - 0xc]
push edx
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
mov edx, 0x4cc81a
mov word [ebp - 0x24], 0x20
call fcn.004bad00
inc dword [ebp - 0x18]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
add ebx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ebx
movsx ecx, byte [ebp - 0x50]
cmp ecx, 0x3a
je 0x42f6c3
call sub.kernel32.dll_GetLastError
mov word [ebp - 0x24], 8
lea eax, [ebp - 0x34]
mov edx, str.Error:_Not_supported_format_of_hex_file__Intel_.
push eax
push 0
push 0
push 0
push 1
push fcn.0042a700
push 0
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], 0x2c
call fcn.004bad00
inc dword [ebp - 0x18]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a21c8]
call fcn.004a5d48
push eax
push 0x404274
call fcn.004b7b21
add esp, 0x24
mov dx, word [0x4cc7f4]
mov word [ebp - 0x5f], dx
mov dl, byte [0x4cc7f6]
mov byte [ebp - 0x5d], dl
lea edx, [ebp - 0x58]
mov word [ebp - 0x24], 8
mov cl, byte [ebp - 0x4f]
mov byte [ebp - 0x5f], cl
lea ecx, [ebp - 0x5f]
mov al, byte [ebp - 0x4e]
mov byte [ebp - 0x5e], al
push edx
push 0x4cc866
push ecx
call fcn.004b0638
mov eax, dword [0x4cc7f7]
add esp, 0xc
mov dword [ebp - 0x64], eax
mov al, byte [0x4cc7fb]
mov byte [ebp - 0x60], al
mov dl, byte [ebp - 0x4d]
mov byte [ebp - 0x64], dl
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 0x63], cl
lea ecx, [ebp - 0x5c]
mov al, byte [ebp - 0x4b]
mov byte [ebp - 0x62], al
lea eax, [ebp - 0x64]
mov dl, byte [ebp - 0x4a]
mov byte [ebp - 0x61], dl
push ecx
push 0x4cc869
push eax
call fcn.004b0638
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
add esp, 0xc
add eax, dword [ebp - 0x58]
xor edx, edx
cmp edx, dword [ecx + 0xc]
jne 0x42f757
cmp eax, dword [ecx + 8]
jbe 0x42f76d
jmp 0x42f759
jle 0x42f76d
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov al, byte [ebp - 0x48]
sub al, 0x30
je 0x42f791
dec al
je 0x42f9df
dec al
je 0x42f9ee
sub al, 2
je 0x42f9ee
jmp 0x42fab5
mov edx, dword [ebp - 0x58]
add edx, edx
push edx
call fcn.004ad1e0
pop ecx
mov dword [ebp - 0x6c], eax
push 0
lea ecx, [ebp - 0x68]
push ecx
mov eax, dword [ebp - 0x58]
add eax, eax
push eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp - 0x3c]
test eax, eax
add edx, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x6c]
mov ecx, edx
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x58]
jge 0x42f98b
mov dx, word [0x4cc7fc]
mov word [ebp - 0x77], dx
mov dl, byte [0x4cc7fe]
mov byte [ebp - 0x75], dl
mov word [ebp - 0x24], 8
mov ecx, dword [ebp - 0x8c]
mov al, byte [ecx]
mov byte [ebp - 0x77], al
mov edx, dword [ebp - 0x8c]
mov cl, byte [edx + 1]
mov byte [ebp - 0x76], cl
cmp dword [ebp - 0x70], 0
je 0x42f84b
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x74]
mov ebx, dword [edx + 0x30]
xor edx, edx
mov eax, ecx
div ebx
mov eax, ecx
mov ecx, dword [ebp - 0x70]
sub eax, edx
xor edx, edx
cmp edx, dword [ecx + 4]
jne 0x42f844
cmp eax, dword [ecx]
je 0x42f84b
xor eax, eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x42f942
xor edx, edx
mov dword [ebp - 0x7c], edx
jmp 0x42f8c4
mov word [ebp - 0x24], 0x38
mov eax, ebx
mov edx, dword [ebp - 0x7c]
call fcn.00495cb8
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
add esi, dword [ebp - 0x5c]
add esi, dword [ebp - 0x74]
mov ecx, dword [edx + 0x30]
xor edx, edx
mov eax, esi
div ecx
mov eax, esi
sub eax, edx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x42f897
cmp eax, dword [esp]
pop edx
pop eax
jne 0x42f8ae
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x7c]
mov eax, dword [eax + 0x28]
call fcn.00495cb8
mov dword [ebp - 0x70], eax
jmp 0x42f8d2
mov word [ebp - 0x24], 8
jmp 0x42f8c1
inc dword [ebp - 0x7c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x28]
mov eax, dword [ebx + 8]
cmp eax, dword [ebp - 0x7c]
jg 0x42f85c
cmp dword [ebp - 0x70], 0
jne 0x42f942
push 0x10
call fcn.004ad03c
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 8]
add ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x74]
mov ebx, dword [edx + 0x30]
xor edx, edx
mov eax, ecx
div ebx
mov eax, ecx
mov ecx, dword [ebp - 0x70]
sub eax, edx
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
add edx, edx
push edx
call fcn.004ad1e0
mov ebx, eax
mov eax, dword [ebp - 0x70]
pop ecx
mov dword [eax + 8], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x30]
add ecx, ecx
push ecx
push 0xff
push ebx
call fcn.004adce0
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x70]
call fcn.00495b5c
lea ecx, [ebp - 0x7e]
lea eax, [ebp - 0x77]
push ecx
push 0x4cc86c
push eax
call fcn.004b0638
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x70]
add esp, 0xc
mov eax, dword [edx]
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x5c]
sub edx, eax
mov eax, dword [ecx + 8]
mov cx, word [ebp - 0x7e]
add edx, dword [ebp - 0x74]
mov word [eax + edx*2], cx
inc dword [ebp - 0x74]
add dword [ebp - 0x8c], 2
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x58]
jl 0x42f7e8
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004ad018
pop ecx
mov byte [ebp - 0x7f], 0
mov word [ebp - 0x24], 8
jmp 0x42f9be
lea edx, [ebp - 0x68]
push 0
push edx
lea ecx, [ebp - 0x7f]
push 1
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call sub.kernel32.dll_ReadFile
test eax, eax
inc dword [ebp - 0x3c]
movsx ecx, byte [ebp - 0x7f]
cmp ecx, 0x3a
jne 0x42f9a1
push 1
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call sub.kernel32.dll__llseek
dec dword [ebp - 0x3c]
jmp 0x42fab5
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x42fac7
mov eax, dword [ebp - 0x58]
add eax, eax
inc eax
push eax
call fcn.004ad1e0
pop ecx
mov ebx, eax
mov word [ebp - 0x24], 8
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x84]
mov byte [ebx + eax*2], 0
push 0
push edx
mov ecx, dword [ebp - 0x58]
add ecx, ecx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call sub.kernel32.dll_ReadFile
test eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x84]
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x5c]
push eax
push 0x4cc86f
push ebx
call fcn.004b0638
add esp, 0xc
push ebx
call fcn.004ad018
pop ecx
movsx edx, byte [ebp - 0x48]
cmp edx, 0x32
jne 0x42fa61
mov ecx, dword [ebp - 0x5c]
shl ecx, 4
mov dword [ebp - 0x44], ecx
jmp 0x42fa6a
mov eax, dword [ebp - 0x5c]
shl eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x85], 0
jmp 0x42fa96
lea edx, [ebp - 0x84]
push 0
push edx
lea ecx, [ebp - 0x85]
push 1
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call sub.kernel32.dll_ReadFile
test eax, eax
inc dword [ebp - 0x3c]
movsx ecx, byte [ebp - 0x85]
cmp ecx, 0x3a
jne 0x42fa73
push 1
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push edx
call sub.kernel32.dll__llseek
dec dword [ebp - 0x3c]
mov word [ebp - 0x24], 8
mov ebx, dword [ebp - 0x3c]
cmp ebx, dword [ebp - 0x38]
jb 0x42f5a2
mov eax, dword [ebp - 0x34]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret