Function at 0x441400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x100000
mov dword [0x25f1540], eax
mov dword [esp + 4], 0x24f1540
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
js 0x4417c1
je 0x4417b7
mov byte [eax + 0x24f1540], 0
mov ebx, eax
xor eax, eax
jmp 0x441471
cmp dl, 0x3b
je 0x44147f
add eax, 1
cmp dl, 0xd
je 0x441588
cmp ebx, eax
jle 0x441530
movzx edx, byte [eax + 0x24f1540]
mov ecx, eax
cmp dl, 0xa
jne 0x441458
add eax, 0x24f1540
mov ecx, dword [edi + 0x100004]
lea edx, [eax + ecx + 1]
sub edx, 0x24f1540
cmp edx, 0xfffff
jg 0x441598
lea ebp, [edi + 4]
sub eax, 0x24f153f
mov dword [esp + 0xc], 0
add ecx, ebp
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp + 4], ecx
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
js 0x441795
je 0x4417b7
mov eax, dword [edi + 0x100004]
mov edx, dword [0x26b16f0]
mov dword [0x25f1548], ebp
add eax, ebx
mov dword [edi + 0x100004], eax
mov dword [0x25f1544], eax
mov byte [edi + eax + 4], 0
test byte [edx + 0x18], 4
jne 0x441720
cmp byte [edi + 0x10008c], 0
je 0x4416e0
mov byte [edi + 0x10008c], 0
mov byte [edi + 4], 0
xor eax, eax
mov dword [edi + 0x100004], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x100004]
lea edx, [eax + ebx]
cmp edx, 0xfffff
jg 0x441640
lea eax, [edi + eax + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
js 0x441795
je 0x4417b7
add dword [edi + 0x100004], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ecx + 0x24f1541]
jmp 0x441484
mov byte [edi + 0x10008c], 1
mov byte [edi + 4], 0
mov dword [edi + 0x100004], 0
mov dword [esp], str.SCPI_ERROR:_maximum_command_length_exceeded._Command_will_not_be_parsed._nWaiting_for_NEWLINE_to_continue.
call sym._pprintf
cmp ebx, 0xfffff
jg 0x441604
jmp 0x441770
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x100000
mov dword [esp + 4], 0x24f1540
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
test eax, eax
jle 0x44162f
cmp ebx, 0xfffff
jle 0x441770
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100000
mov dword [esp + 4], 0x24f1540
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
cmp byte [0x25f153f], 0xa
jne 0x4415d0
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edi + 0x10008c], 1
mov byte [edi + 4], 0
mov dword [edi + 0x100004], 0
mov dword [esp], str.SCPI_ERROR:_maximum_command_length_exceeded._Command_will_not_be_parsed._nWaiting_for_NEWLINE_to_continue.
call sym._pprintf
cmp ebx, 0x100000
je 0x4416a4
jmp 0x441770
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x100000
mov dword [esp + 4], 0x24f1540
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
test eax, eax
jle 0x44162f
cmp ebx, 0xfffff
jle 0x441770
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100000
mov dword [esp + 4], 0x24f1540
mov eax, dword [edi]
mov dword [esp], eax
call esi
sub esp, 0x10
cmp byte [0x25f153f], 0xa
jne 0x441670
xor eax, eax
jmp 0x441631
mov eax, dword [edi + 0x100004]
mov dword [esp + 4], ebp
mov dword [esp], 0x26b1fa0
sub eax, 1
mov dword [esp + 8], eax
call sym._SCPI_Parse
mov eax, dword [0x26b16f0]
test byte [eax + 0x18], 8
je 0x441516
call sym.printRecV__
jmp 0x441516
mov dword [esp + 0x10], eax
mov eax, dword [0x4f0318]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], str.SCPI_recv:
mov dword [esp + 4], 0x4f0314
mov dword [esp], eax
call sym._dbgsprintToOutbuf
mov dword [esp], eax
mov dword [0x4f0318], eax
call sym._pprintf
mov eax, dword [0x4f0314]
test eax, eax
je 0x441502
mov eax, dword [0x4f0318]
mov byte [eax], 0
jmp 0x441502
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x24f1540
mov eax, dword [edi]
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 0x10
jmp 0x441631
mov dword [esp], str.recv
call sym._perror
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], str.recv_failed:__d_n
mov dword [esp + 4], eax
call sym._pprintf
mov eax, 0xffffffff
jmp 0x441526
mov dword [esp], str.recv
call sym._perror
mov eax, 0xffffffff
jmp 0x441526