Function at 0x1003c380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x438
mov eax, dword [0x100a049c]
xor eax, esp
mov dword [esp + 0x434], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x34]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x14], edx
mov edi, ecx
mov dword [esp + 0x18], esi
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b0a0
push dword [esp + 8]
push 0x164
push str.CommunicationStream
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
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_call__CommunicationStream_with_sendStream___s_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c410
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
test edi, edi
je 0x1003c5dd
test esi, esi
je 0x1003c5dd
cmp edi, 0xffffffff
je 0x1003c4d0
push dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov ecx, edi
call fcn.1003cca0
add esp, 4
cmp eax, 0xffffffff
je 0x1003c4d0
xor esi, esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0x200
push 0
push eax
call fcn.10050650
add esp, 0xc
lea eax, [esp + 8]
push 0
push eax
push 0x200
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003c4a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003c4ca
mov eax, dword [esp + 8]
test eax, eax
je 0x1003c4ba
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x14]
call fcn.100500d0
add esp, 0xc
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [esp + 8], 0
jg 0x1003c541
inc esi
cmp esi, 0x32
jl 0x1003c458
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b0a0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x179
push str.CommunicationStream
call eax
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__call__CommunicationStream_return_FALSE__n
push eax
call fcn.10007a40
lea ecx, [esp + 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c535
jmp 0x1003c649
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b0a0
push dword [esp + 0xc]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x173
push str.CommunicationStream
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__call__CommunicationStream_Ok_return_recvStream___s_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c5b0
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.1003b0a0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x167
push str.CommunicationStream
call eax
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__handle_or_recvStream_is_NULL_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c642
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.1003b1f0
mov ecx, dword [esp + 0x444]
add esp, 8
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret