Function at 0x1002f860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x438
mov eax, dword [0x100a249c]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x400
mov dword [esp + 0x10], eax
mov edi, ecx
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b200
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa8
push str.ComConnect::ReadFromClient
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push str._s_t__d__d___INFO____s:_d__start_ReadFromClient_with_recvBuf_size___d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f8f0
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b350
add esp, 8
cmp dword [edi + 0x80], 0xffffffff
jne 0x1002f9a3
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b200
push 0xaa
push str.ComConnect::ReadFromClient
call esi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
push str._s_t__d__d___ERROR____s:_d__ReadFromClient_mHandle_INVALID_HANDLE_VALUE_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002f974
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b350
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 8
push 0x10095ac0
push str.cncomm
xor esi, esi
call fcn.1004f9e0
add esp, 8
test eax, eax
je 0x1002faae
cmp dword [esp + 0xc], esi
je 0x1002fa0d
mov esi, dword [edi + 0x80]
test esi, esi
je 0x1002fa0d
push 0x200
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0x200
push 0
push eax
call fcn.10050780
add esp, 0xc
lea eax, [esp + 8]
push 0
push eax
push 0x200
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002fa82
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b200
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0xb1
push str.ComConnect::ReadFromClient
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push str._s_t__d__d___INFO____s:_d__310_ReadFromClient_ok_with_len___d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fa76
jmp 0x1002fbd7
mov eax, dword [esp + 8]
test eax, eax
je 0x1002fa9c
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x14]
call fcn.10050200
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov esi, dword [esp + 8]
jmp 0x1002fa10
push str.pcomm
push str.cncomm
call fcn.1004f9e0
add esp, 8
test eax, eax
je 0x1002fb33
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x20], esi
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b200
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0xb4
push str.ComConnect::ReadFromClient
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push str._s_t__d__d___INFO____s:_d__PComm_ReadFromClient_ok_with_len___d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fb27
jmp 0x1002fbd7
push ecx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x84]
push dword [esp + 0x14]
call fcn.1002ce10
mov ecx, dword [edi + 0x84]
mov esi, eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x1002fb5f
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b200
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0xb8
push str.ComConnect::ReadFromClient
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x54]
push str._s_t__d__d___INFO____s:_d__CnComm_ReadFromClient_ok_with_len___d_err:_d_n
push eax
call fcn.10007a20
lea ecx, [esp + 0x5c]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fbd0
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b350
mov ecx, dword [esp + 0x444]
add esp, 8
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1004ce09
mov esp, ebp
pop ebp
ret 8