Function at 0x1003c770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100a049c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
push esi
push 0x198
push str.CommunicationStream500
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__start_call__CommunicationStream500_with_sendStream___s_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c7f3
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
test edi, edi
je 0x1003c9d0
test ebx, ebx
je 0x1003c9d0
cmp edi, 0xffffffff
je 0x1003c8c7
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.1003cb90
add esp, 4
cmp eax, 0xffffffff
je 0x1003c8c7
xor esi, esi
nop
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 0x41c], 0x200
push 0
push eax
call fcn.10050540
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003c890
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c8bd
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1003c8ab
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.1004ffc0
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [ebp - 0x41c], 0
jg 0x1003c93c
inc esi
cmp esi, 0x1e
jl 0x1003c840
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1ad
push str.CommunicationStream500
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__call__CommunicationStream500_return_FALSE__n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c930
jmp 0x1003ca3e
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
push 0x1a7
push str.CommunicationStream500
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___INFO____s:_d__call__CommunicationStream500_Ok_return_recvStream___s_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c9a4
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [ebp - 8], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x18], xmm0
call fcn.1003afa0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x19b
push str.CommunicationStream500
call eax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push str._s_t__d__d___ERROR____s:_d__handle_or_recvStream_is_NULL_n
push eax
call fcn.10007a40
lea ecx, [ebp - 0x418]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ca37
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
call fcn.1003b0f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.1004cbc7
mov esp, ebp
pop ebp
ret