Function at 0x4035d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0x20
call fcn.0040aa50
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x403643
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
cmp eax, 0
je 0x4036ae
lea eax, [0x431952]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004024b0
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov ecx, eax
mov edx, ecx
sar edx, 0x1f
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
or eax, ecx
jne 0x40371c
jmp 0x4036e2
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, eax
lea eax, str.Key_file_is_empty._n
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a8e0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004024b0
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax], ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.0040ab40
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x403796
mov eax, esp
mov dword [eax], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov eax, esp
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], str.ERROR:_unable_to_alloc__llu_bytes_n
call fcn.0040a8e0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004024b0
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov esi, dword [ebp + 8]
mov eax, esp
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
cmp eax, ecx
je 0x403811
mov eax, esp
mov dword [eax], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov eax, esp
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov dword [eax], ecx
mov dword [eax + 4], str.ERROR:_unable_to_read__llu_bytes_from_trace_file_n
call fcn.0040a8e0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004024b0
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov eax, esp
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00402780
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00402a10
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00402c80
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, esp
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00403390
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x4038dd
jmp 0x4038c4
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004024b0
mov dword [esp + 0x2c], 0
jmp 0x4039a6
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00403480
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x40399e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
lea ecx, str.Threads___d_:_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040a930
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jge 0x403999
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*8]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + edx*8 + 4]
lea edx, str._2d__s_n
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040a930
mov eax, dword [esp + 0x18]
add eax, 1
mov dword [esp + 0x18], eax
jmp 0x403945
jmp 0x40399e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret