Function at 0x435f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4040
call fcn.00444810
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4024], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4020], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [edi + 0x118]
mov dword [ebp - 0x4028], edx
mov dword [ebp - 0x403c], ebx
mov dword [ebp - 0x402c], eax
mov dword [ebp - 0x4034], esi
push dword [edi]
lea eax, [ebp - 0x18]
push 0x10
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x10
jb 0x4364f1
mov edx, dword [ebp - 0x4028]
xor ecx, ecx
add dword [edi + 0x130], eax
mov eax, esi
adc ecx, dword [edi + 0x134]
mov dword [edi + 0x134], ecx
sub eax, 1
je 0x4360d2
sub eax, 1
je 0x43604a
mov eax, esi
mov dword [edx], 0xa3a3
sub eax, 1
je 0x4360f3
sub eax, 1
je 0x43606b
mov eax, esi
mov dword [ebx], 0xa3a3
sub eax, 1
je 0x436114
sub eax, 1
je 0x43608c
mov eax, dword [ebp - 0x4020]
mov dword [eax], 0xa3a3
mov eax, esi
sub eax, 1
je 0x43613b
sub eax, 1
je 0x4360b3
mov eax, 0xa3a3
jmp 0x43615a
movzx ecx, byte [ebp - 0x15]
movzx eax, byte [ebp - 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x18]
shl ecx, 8
or ecx, eax
mov dword [edx], ecx
movzx ecx, byte [ebp - 0x11]
movzx eax, byte [ebp - 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx ecx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x10]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x4020]
mov dword [eax], ecx
movzx eax, byte [ebp - 9]
movzx ecx, byte [ebp - 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xb]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xc]
jmp 0x436155
movzx ecx, byte [ebp - 0x18]
movzx eax, byte [ebp - 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x15]
shl ecx, 8
or ecx, eax
mov dword [edx], ecx
movzx ecx, byte [ebp - 0x14]
movzx eax, byte [ebp - 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x11]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx ecx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xd]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x4020]
mov dword [eax], ecx
movzx eax, byte [ebp - 0xc]
movzx ecx, byte [ebp - 0xb]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 9]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x4024]
mov dword [ecx], eax
xor ecx, ecx
mov eax, dword [ebx]
cmp eax, 0xf42a4
jbe 0x43617e
cmp eax, 0xffffff00
jbe 0x4361a3
dec dword [edx]
add dword [ebx], 0xf4240
mov eax, dword [ebx]
test eax, eax
mov eax, dword [ebp - 0x4024]
jne 0x4361ae
cmp dword [edx], 0
mov edx, dword [ebp - 0x4020]
jne 0x4361b4
cmp dword [eax], 0
jne 0x4361b4
cmp dword [edx], 0
je 0x435fb2
jmp 0x4361b4
mov eax, dword [ebp - 0x4024]
mov ecx, 1
mov edx, dword [ebp - 0x4020]
mov edx, dword [edx]
mov esi, 1
mov eax, dword [eax]
cmp edx, 0x10000
cmova ecx, esi
cmp eax, edx
cmovb ecx, esi
cmp eax, 8
jae 0x4361d4
mov ecx, esi
jmp 0x4361df
cmp eax, 0x27100
ja 0x4362bf
test ecx, ecx
jne 0x4362bf
push dword [edi]
lea esi, [edi + 0x18]
push edx
push 1
push dword [ebp - 0x402c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 0x4020]
add esp, 0x10
cmp eax, dword [ecx]
jae 0x43625a
test eax, eax
jne 0x43624f
push dword [edi + 0x124]
push dword [edi + 0x120]
push esi
push str._s:_could_not_read_packet_data__frame__lld_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x14
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push esi
push str._s:_premature_end_of_file_n
jmp 0x4364fe
add dword [edi + 0x130], eax
mov esi, dword [edi + 0x120]
mov eax, esi
adc dword [edi + 0x134], 0
or eax, dword [edi + 0x124]
mov edx, dword [ebp - 0x4028]
jne 0x436287
mov eax, dword [edx]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov dword [edi + 0xc], eax
mov ecx, dword [edx]
add esi, 1
mov eax, dword [edi + 0x124]
adc eax, 0
mov dword [edi + 0x10], ecx
mov ecx, dword [ebx]
mov dword [edi + 0x124], eax
mov eax, 1
mov dword [edi + 0x14], ecx
mov dword [edi + 0x120], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push dword [edi]
lea ebx, [edi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov esi, dword [edi + 0x120]
mov ecx, eax
mov dword [ebp - 0x4030], edx
add esp, 4
and ecx, dword [ebp - 0x4030]
mov edx, dword [edi + 0x124]
mov dword [ebp - 0x4038], eax
cmp ecx, 0xffffffff
je 0x4364a7
mov ecx, dword [ebp - 0x4030]
push ecx
push eax
push ecx
push eax
push edx
push esi
push ebx
push str._s:_lld:_corruption_found_at_0x_08I64x___I64d__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x24
lea eax, [ebp - 0x401c]
push dword [edi]
push 0x4000
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x43646d
add dword [edi + 0x130], ebx
adc dword [edi + 0x134], 0
xor esi, esi
test ebx, ebx
je 0x43637b
push dword [edi + 0x11c]
mov edx, ebx
lea ecx, [ebp - 0x401c]
push dword [ebp - 0x4034]
sub edx, esi
add ecx, esi
call fcn.00435b70
add esp, 8
test eax, eax
jne 0x43638d
inc esi
cmp esi, ebx
jb 0x436352
push str.No_valid_packet_found_in_chunk_n
call fcn.00401330
add esp, 4
jmp 0x4362bf
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xor eax, eax
add esi, dword [ebp - 0x4038]
push 0
adc eax, dword [ebp - 0x4030]
push eax
push esi
push dword [edi]
call ebx
add esp, 0x10
test eax, eax
je 0x4363f7
lea esi, [edi + 0x18]
push esi
push str._s:_could_not_resolve_file_corruption__seek_forward__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
push 2
push 0
push 0
push dword [edi]
call ebx
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
add esp, 4
lea esi, [edi + 0x18]
push edx
push eax
push edx
push eax
push dword [edi + 0x124]
push dword [edi + 0x120]
push esi
push str._s:_lld:_good_packet_found_at_0x_08I64x___I64d__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
mov edx, dword [ebp - 0x4028]
add esp, 0x24
mov ecx, edi
push 0x10000
push dword [ebp - 0x402c]
push dword [ebp - 0x4020]
push dword [ebp - 0x4024]
push dword [ebp - 0x403c]
call fcn.00435f60
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x18]
push esi
push str._s:_error_at_end_of_file_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
push edx
push esi
push ebx
push str._s:_lld:_could_not_resolve_file_corruption__ftell__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0x14
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
push 2
push 0
push 0
push dword [edi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00443732
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x436512
lea eax, [edi + 0x18]
push eax
push 0x453fd8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443732
mov esp, ebp
pop ebp
ret