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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x838
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0x834], eax
cmp dword [ebp + 0xc], 3
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
jne 0x43df4e
cmp dword [ebp + 0x10], 0
jne 0x43df4e
mov dword [ebp + 0xc], 4
push 0x10000
mov dword [esp + 0x10], 0x10000
call fcn.004a64f8
push 0x10000
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
push 0x800
lea eax, [esp + 0x4c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x1c
call fcn.004625c0
push 0x1f3
push 0xfffffc18
push edx
push eax
call fcn.004cbe60
push 0
push 0x800
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 8]
push ecx
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
je 0x43e134
cmp ebx, 0xffffffff
je 0x43e1bb
mov eax, dword [esi]
lea ecx, [eax + ebx]
cmp ecx, dword [esp + 0xc]
jbe 0x43e04b
push eax
call fcn.004a64f8
mov edx, dword [esi]
push edx
push 0
push eax
mov dword [esp + 0x20], eax
call sub.MSVCR100.dll_memset
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
push eax
push edi
push ecx
call sub.MSVCR100.dll_memcpy
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x2c]
add eax, 0x10000
push eax
mov dword [esp + 0x30], eax
call fcn.004a64f8
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
push 0
push edi
mov dword [esp + 0x3c], eax
call sub.MSVCR100.dll_memset
mov edx, dword [esi]
mov eax, dword [esp + 0x40]
push edx
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esi]
add esp, 0x40
push ebx
lea edx, [esp + 0x3c]
push edx
jmp 0x43e051
push ebx
lea ecx, [esp + 0x3c]
push ecx
add eax, edi
push eax
call sub.MSVCR100.dll_memcpy
add dword [esi], ebx
mov ebx, dword [esi]
add esp, 0xc
push 0x800
lea edx, [esp + 0x3c]
push 0
push edx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 2
jne 0x43e098
push str._r_n_r_n
push edi
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
jne 0x43e134
mov eax, dword [ebp + 0xc]
jmp 0x43e0a6
cmp eax, 3
jne 0x43e0a6
cmp ebx, dword [ebp + 0x10]
jae 0x43e134
cmp dword [ebp + 0x18], 0
jbe 0x43e114
cmp eax, 3
jne 0x43e114
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
or eax, ebx
jne 0x43e0c1
xor ecx, ecx
jmp 0x43e0f1
call fcn.004625c0
push 0x1f3
push 0xfffffc18
push edx
push eax
call fcn.004cbe60
cmp edx, ebx
jb 0x43e0eb
ja 0x43e0e3
cmp eax, dword [esp + 0x20]
jb 0x43e0eb
sub eax, dword [esp + 0x20]
sbb edx, ebx
jmp 0x43e0ef
xor eax, eax
xor edx, edx
mov ecx, edx
push 0
add eax, 0x3e7
push 0x3e8
adc ecx, 0
push ecx
push eax
call fcn.004cbb90
xor ecx, ecx
cmp edx, ecx
jg 0x43e134
jl 0x43e114
cmp eax, dword [ebp + 0x18]
ja 0x43e134
mov edx, dword [ebp + 8]
push 0
push 0x800
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x43dfc1
push str._r_n_r_n
push edi
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x43e1c4
mov ebx, dword [esp + 0x1c]
sub eax, edi
add eax, 4
push eax
mov dword [ebx], eax
call fcn.004a64f8
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebx]
push edx
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, 4
je 0x43e178
cmp eax, 3
jne 0x43e19b
mov eax, dword [ebx]
sub dword [esi], eax
mov eax, dword [esi]
push eax
call fcn.004a64f8
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov edx, dword [esi]
mov ecx, dword [ebx]
push edx
add ecx, edi
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0x10
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x43e134
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [esp + 0x840]
add esp, 4
pop edi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004a665a
mov esp, ebp
pop ebp
ret