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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4e739b
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4e73c2
push 0x19
push 0x401ebc1
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e73d9
mov eax, 0x57c388
jmp 0x4e75a9
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4e740a
push 0xc4
push 0x401ebc1
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.005091d0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4e7440
push ebx
call fcn.00508550
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040eb47
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x1000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x1bc
call fcn.005091d0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4e748a
push ebx
call fcn.00508550
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040eb47
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4e74d5
push 0x1f7
push 0x401ebc1
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4e74e7
jmp 0x4e755e
cmp dword [ebp - 0x1c], 0
jne 0x4e74f6
jmp 0x4e755e
lea eax, [ebp - 0x18]
push eax
call fcn.0040eb47
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4e7534
push 0x2ad
push 0x401ebc1
push 6
call fcn.00508556
add esp, 0xc
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004032fc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1c], 0
jne 0x4e7457
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4e758a
push 0x341
push 0x401ebc1
push 6
call fcn.00508556
add esp, 0xc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4e75a4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050854a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4e75a9
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4e75ba
push ebx
call fcn.00508550
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4e75ca
push ebx
call fcn.00508550
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4