Function at 0x43f3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov edi, dword [ebp + 0xc]
call 0x43f3f1
pop eax
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0xc]
cmp dword [edi + 8], 0
mov dword [edi + 8], 0
je 0x43f40b
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x10], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [edi + 0x1c]
mov dword [edi + 0x18], 0
je 0x43f4a4
test eax, eax
je 0x43f6ad
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x48]
lea ecx, [ebp - 0x74]
push eax
push ebx
push esi
call sym.std::sys::windows::pipe::read2::ha031f61069852f20
add esp, 0xc
mov eax, dword [ebp - 0x74]
cmp al, 4
je 0x43f6f5
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x3c]
push 0x4c2320
push 0x4c03ac
push edi
push 0x2b
push 0x4c03bc
call sym.core::result::unwrap_failed::h41df7b05bd7f784f
add esp, 0x14
jmp 0x43f851
test eax, eax
je 0x43f6f5
xor esi, esi
xor edi, edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x1c], ebx
jmp 0x43f4d0
cmp edi, esi
jne 0x43f4e9
mov edx, esi
lea ecx, [ebp - 0x18]
push 0x20
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::hab053c3fc72d2020
add esp, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, esi
sub ecx, edi
add eax, edi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], eax
mov edx, ebx
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x3c]
push eax
call sym.std::sys::windows::pipe::AnonPipe::read_buf::h327bd029f532797f
add esp, 4
movzx eax, byte [ebp - 0x3c]
cmp eax, 4
je 0x43f5a6
mov eax, dword [eax*4 + 0x43f90c]
add eax, dword [ebp - 0x60]
jmp eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x43f7cd
mov ecx, dword [ebp - 0x50]
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x4c], eax
jb 0x43f827
mov eax, dword [ebp - 0x58]
cmp ecx, eax
ja 0x43f838
cmp ebx, eax
ja 0x43f841
add ebx, edi
mov eax, esi
or eax, ebx
mov dword [ebp - 0x10], ebx
je 0x43f5e9
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x43f4d0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
jmp 0x43f618
call sub.KERNEL32.dll_GetLastError
mov esi, eax
push esi
call sym.std::sys::windows::decode_error_kind::ha748574a25ec667c
add esp, 4
cmp al, 0x23
jne 0x43f7ae
xorps xmm0, xmm0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], eax
push sym.__ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h0a1bc856fd537a7aE_12
lea eax, [ebp - 0x74]
push eax
push 0x20
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x43f600
nop word cs:[eax + eax]
nop
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x80], 0
je 0x43f650
mov esi, dword [ebp - 0x7c]
test esi, esi
jne 0x43f607
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x43f7b6
cmp eax, 0x21
mov edi, eax
jae 0x43f853
xor edx, edx
lea ecx, [ebp - 0x18]
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::hab053c3fc72d2020
add esp, 4
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, ebx
push edi
lea ecx, [ebp - 0x3c]
push ecx
push eax
call sym._memcpy
add esp, 0xc
add ebx, edi
mov dword [ebp - 0x10], ebx
jmp 0x43f5df
mov dword [ebp - 0x5c], edx
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x74]
push eax
call sym.std::sys::windows::pipe::AnonPipe::read_to_end::h9348c3a560f3e71a
add esp, 4
mov eax, dword [ebp - 0x74]
cmp al, 4
jne 0x43f7d8
push dword [ebp - 0x5c]
jmp 0x43f6f0
movzx eax, al
cmp eax, 4
jne 0x43f800
push ebx
call sub.KERNEL32.dll_CloseHandle
mov dword [edi + 8], 0
mov ebx, edi
mov esi, dword [ebp + 8]
mov edi, dword [edi]
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x43f757
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], 0
test eax, eax
je 0x43f740
push 1
push eax
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x43f791
push 1
push eax
push dword [ebp - 0x44]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x43f791
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
je 0x43f7a9
movsd xmm0, qword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
movsd qword [esi + 4], xmm0
movsd xmm0, qword [ebp - 0x18]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], edx
movsd qword [esi + 0x10], xmm0
mov dword [esi], eax
push edi
call sub.KERNEL32.dll_CloseHandle
push dword [ebx + 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x43f70f
movzx eax, al
cmp eax, 0xb
jne 0x43f7c4
mov eax, 4
xor esi, esi
xor ecx, ecx
jmp 0x43f6e3
xor eax, eax
xor ecx, ecx
jmp 0x43f6e3
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
jmp 0x43f6ef
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x3c]
push 0x4c2330
push 0x4c03ac
push edi
push 0x2b
push 0x4c03bc
call sym.core::result::unwrap_failed::h41df7b05bd7f784f
add esp, 0x14
jmp 0x43f851
or ecx, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ecx
push 0x4c2340
push 0x4c03ac
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x4c03bc
call sym.core::result::unwrap_failed::h41df7b05bd7f784f
add esp, 0x14
jmp 0x43f851
push 0x4c1d68
push ecx
push ebx
call sym.core::slice::index::slice_index_order_fail::hba371d894dfabb23
add esp, 0xc
jmp 0x43f851
mov ebx, ecx
mov ecx, 0x4c1d68
jmp 0x43f846
mov ecx, 0x4c1d78
push ecx
push eax
push ebx
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2
mov ebx, edi
mov ecx, 0x4c1d88
mov eax, 0x20
jmp 0x43f846