Function at 0x10035110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x438
mov eax, dword [0x100a94c0]
xor eax, esp
mov dword [esp + 0x434], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x38]
push 0x400
mov esi, ecx
mov dword [esp + 0x10], edi
push 0
push eax
mov dword [esp + 0x14], esi
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.10040e60
push dword [ebp + 0xc]
push 0xce
push str.ComConnect::ReadFromClient
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_ReadFromClient_with_recvBuf_size___d_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100351a0
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.10040fb0
add esp, 8
cmp dword [esi + 0x80], 0xffffffff
jne 0x1003525f
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.10040e60
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xd0
push str.ComConnect::ReadFromClient
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__ReadFromClient_mHandle_INVALID_HANDLE_VALUE_n
push eax
call fcn.10008e20
lea ecx, [esp + 0x54]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035230
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.10040fb0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 8
push 0x1009c610
push str.cncomm
xor esi, esi
call fcn.10055510
add esp, 8
test eax, eax
je 0x10035369
mov ecx, dword [esp + 8]
mov esi, dword [ecx + 0x80]
test edi, edi
je 0x100352cb
test esi, esi
je 0x100352cb
push 0x200
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0x200
push 0
push eax
call fcn.10056280
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 0x10035340
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.10040e60
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0xd7
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.10008e20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035334
jmp 0x100354b8
mov eax, dword [esp + 8]
test eax, eax
je 0x10035357
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.10055d00
add esp, 0xc
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov esi, dword [esp + 8]
jmp 0x100352ce
push str.pcomm
push str.cncomm
call fcn.10055510
add esp, 8
test eax, eax
je 0x100353ee
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x20], esi
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.10040e60
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0xda
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.10008e20
lea ecx, [esp + 0x58]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100353e2
jmp 0x100354b8
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x84]
test byte [ecx + 4], 4
je 0x10035438
lea esi, [ecx + 0xdc]
test esi, esi
je 0x1003542b
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
mov ecx, esi
push dword [esp + 0x10]
call fcn.100324b0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10035444
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.100324b0
jmp 0x10035442
push ecx
push dword [ebp + 0xc]
push edi
call fcn.10031cf0
mov esi, eax
push 0x400
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
call fcn.10040e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0xde
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.10008e20
lea ecx, [esp + 0x5c]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100354b1
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
call fcn.10040fb0
mov ecx, dword [esp + 0x444]
add esp, 8
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.10052bc3
mov esp, ebp
pop ebp
ret 8