Function at 0x4035b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp], 0x20
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
call fcn.0040b040
xor ecx, ecx
mov edx, eax
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
jne 0x403631
mov dword [esp + 0x4c], 0
jmp 0x4039a0
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20
mov dword [esp + 0x24], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp + 8]
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 0x40369e
lea eax, [0x432952]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004024d0
mov dword [esp + 0x4c], 0
jmp 0x4039a0
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ecx], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov ecx, eax
sar ecx, 0x1f
mov edx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
or ecx, eax
jne 0x40370c
jmp 0x4036d0
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp], eax
lea eax, str.Key_file_is_empty._n
mov dword [esp + 4], eax
call fcn.0040aea0
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x20], eax
call fcn.004024d0
mov dword [esp + 0x4c], 0
jmp 0x4039a0
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ecx], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.0040b130
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
cmp dword [eax], 0
jne 0x403786
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, dword [esp + 0x3c]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, esp
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edx
mov dword [esi], eax
mov dword [esi + 4], str.ERROR:_unable_to_alloc__llu_bytes_n
call fcn.0040aea0
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x1c], eax
call fcn.004024d0
mov dword [esp + 0x4c], 0
jmp 0x4039a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi], ecx
mov dword [esi + 4], 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
cmp eax, ecx
je 0x403803
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, dword [esp + 0x3c]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, esp
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edx
mov dword [esi], eax
mov dword [esi + 4], str.ERROR:_unable_to_read__llu_bytes_from_trace_file_n
call fcn.0040aea0
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x18], eax
call fcn.004024d0
mov dword [esp + 0x4c], 0
jmp 0x4039a0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, dword [ebp + 0xc]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
call fcn.004027a0
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.00402a30
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.00402ca0
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.00403360
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x4038cf
jmp 0x4038b6
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004024d0
mov dword [esp + 0x4c], 0
jmp 0x4039a0
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x10], eax
call fcn.00403450
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004034b0
cmp dword [ebp + 0xc], 0
je 0x403998
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
lea ecx, str.Threads___d_:_n
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040aef0
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx + 0x10]
jge 0x403993
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx*8]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + edx*8 + 4]
lea edx, str._2d__s_n
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0040aef0
mov eax, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x38], eax
jmp 0x40393f
jmp 0x403998
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret