Function at 0x4973fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00448afd
test eax, eax
jge 0x497437
cmp dword [ebp - 0xc], ebx
je 0x497430
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x497601
mov edi, 0x1000
push edi
call fcn.004ce6ea
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x20], ebx
call fcn.00498988
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x497471
call fcn.00433cce
jmp 0x497473
xor eax, eax
cmp eax, ebx
jl 0x49748e
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x497499
push dword [ebp - 8]
lea esi, [ebp - 0x13c]
call fcn.004989c0
jmp 0x497454
push dword [ebp - 8]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x497422
mov eax, dword [0x5438cc]
mov ecx, 0x5438cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x13c]
call fcn.00498a57
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
mov edi, str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
lea eax, [ebp - 8]
push edi
push eax
call fcn.0042a016
add esp, 0x48
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00407371
lea eax, [ebp - 8]
call fcn.00407211
lea eax, [ebp - 0x1d4]
call fcn.00498988
mov ebx, dword [ebp - 8]
mov eax, dword [ebx - 0xc]
push ebx
lea esi, [ebp - 0xa4]
mov dword [ebp - 8], eax
call fcn.0042c014
push dword [eax]
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x1d4]
call fcn.004989c0
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0xa4], eax
je 0x49757c
push dword [ebp - 0xa4]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1d4]
call fcn.00498a57
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
call fcn.0042a016
add esp, 0x48
lea eax, [ebx - 0x10]
call fcn.00401239
cmp dword [ebp - 0xc], 0
je 0x4975fe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret