Function at 0x402b31
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0x18
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402b60
jmp 0x402da0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x402b90
mov dword [esp], str.fseek
call sub.msvcrt.dll_perror
jmp 0x402da0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x402bc8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], str.Key_file_is_empty._n
mov dword [esp], eax
call fcn.00401510
jmp 0x402da0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x402c19
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR:_unable_to_alloc__ld_bytes_n
mov dword [esp], edx
call fcn.00401510
jmp 0x402da0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
cmp eax, edx
je 0x402c73
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR:_unable_to_read__ld_bytes_from_trace_file_n
mov dword [esp], edx
call fcn.00401510
jmp 0x402da0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040215f
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004022f7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402499
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004029e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jns 0x402ce0
jmp 0x402da0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402a6c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402aff
cmp dword [ebp + 0xc], 0
je 0x402d9b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Threads___d_:_n
call fcn.00401540
mov dword [ebp - 0xc], 0
jmp 0x402d90
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
shl edx, 3
add eax, edx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 3
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._2d__s_n
call fcn.00401540
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xc]
jg 0x402d57
mov eax, dword [ebp - 0x10]
jmp 0x402db0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00401fa8
mov eax, 0
leave
ret