Function at 0x4223f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x49e074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
push dword [edi + 0x1c]
mov dword [ebp - 0x84], 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push esi
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422840
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x42257c
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00422190
push 0xc
push str.Read_Fail_:
push ecx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004141c0
cmp byte [0x4a3190], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
je 0x4224e6
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [edi + 4]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4224d5
mov eax, dword [eax]
push ecx
push eax
push 0x48d878
call fcn.00414fa0
add esp, 0xc
jmp 0x4224ff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x48d880
call fcn.00414fa0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x422533
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422529
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422863
push edx
push ecx
call fcn.0045020d
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x42282e
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422863
jmp 0x422824
push dword [ebp + 0x10]
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x422746
cmp eax, 0x102
je 0x4226a5
call esi
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.00422190
push 0xc
push str.Read_Fail_:
push ecx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004141c0
cmp byte [0x4a3190], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
je 0x42260f
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea eax, [edi + 4]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 0x10
jb 0x4225fe
mov eax, dword [eax]
push ecx
push eax
push 0x48d878
call fcn.00414fa0
add esp, 0xc
jmp 0x422628
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x48d880
call fcn.00414fa0
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x42265c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422652
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422868
push edx
push ecx
call fcn.0045020d
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x42282e
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422868
jmp 0x422824
push 0x13
push str.Read_Fail_:_timeout
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403590
cmp byte [0x4a3190], 0
je 0x4226f6
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [edi + 4]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4226e5
mov eax, dword [eax]
push ecx
push eax
push 0x48d878
call fcn.00414fa0
add esp, 0xc
jmp 0x42270f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x48d880
call fcn.00414fa0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42282e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422824
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42286d
jmp 0x422824
push 0
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x422840
call esi
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.00422190
push 0xc
push str.Read_Fail_:
push ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004141c0
cmp byte [0x4a3190], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
je 0x4227d8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [edi + 4]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4227c7
mov eax, dword [eax]
push ecx
push eax
push 0x48d878
call fcn.00414fa0
add esp, 0xc
jmp 0x4227f1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x48d880
call fcn.00414fa0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x422533
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422529
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422863
jmp 0x422529
push edx
push ecx
call fcn.0045020d
add esp, 8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [edi + 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_ClearCommError]
call eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
ret 0x10
call fcn.0045ae71
call fcn.0045ae71
call fcn.0045ae71
int3