Function at 0x4127e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a2cd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x466124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ebx, dword [0x46bc90]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, 4
push 0
push eax
lea eax, [ebp - 0x20]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x412842
add esi, eax
mov eax, 4
sub eax, esi
cmp esi, 4
jl 0x412821
jmp 0x412849
mov byte [0x469bd4], 1
mov ebx, dword [0x46bc90]
xor esi, esi
mov eax, 8
push 0
push eax
lea eax, [ebp - 0x28]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x412877
add esi, eax
mov eax, 8
sub eax, esi
cmp esi, 8
jl 0x412856
jmp 0x41287e
mov byte [0x469bd4], 1
mov ebx, dword [0x46bc90]
xor esi, esi
mov eax, 1
nop dword [eax + eax]
push 0
push eax
lea eax, [ebp - 0x11]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x4128b1
add esi, eax
mov eax, 1
sub eax, esi
cmp esi, 1
jl 0x412890
jmp 0x4128b8
mov byte [0x469bd4], 1
mov ebx, dword [ebp - 0x20]
cmp ebx, 0x1f40
jle 0x4128cd
mov eax, 2
jmp 0x412a54
mov ecx, dword [0x46bc90]
xor esi, esi
mov dword [ebp - 0x2c], ecx
test ebx, ebx
jle 0x41290a
mov eax, ebx
nop
push 0
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x412900
mov ecx, dword [ebp - 0x2c]
add esi, eax
mov eax, ebx
sub eax, esi
cmp esi, ebx
jl 0x4128e0
jmp 0x412907
mov byte [0x469bd4], 1
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 0x11]
cmp al, 0x55
jne 0x4129e5
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
push 0x7e0
call fcn.00429e55
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], esi
lea ecx, [eax + 8]
push ebx
push dword [ebp - 0x18]
mov dword [eax + 4], edi
mov dword [eax + 0x7d8], ebx
call fcn.00402310
add esp, 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00424ce0
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [0x46bce4]
cmp edx, dword [0x46bce8]
je 0x4129a3
lea eax, [ebp - 0x1c]
mov dword [edx], 0
cmp edx, eax
je 0x412993
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx], eax
mov byte [edx + 4], 1
add dword [0x46bce4], 8
jmp 0x4129b0
mov ecx, dword [ebp - 0x1c]
mov byte [edx + 4], 1
add dword [0x46bce4], 8
jmp 0x4129b0
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.00424df0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x412a52
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x412a52
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4129dd
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
jmp 0x412a52
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x412a52
cmp al, 0x70
jne 0x412a52
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 0x46bcec
mov dword [ebp - 0x2c], eax
call fcn.0042907b
add esp, 4
test eax, eax
jne 0x412a70
mov ecx, dword [0x46bcd8]
mov esi, dword [ecx]
cmp esi, ecx
je 0x412a45
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
cmp dword [eax], edi
jne 0x412a1e
cmp dword [eax + 4], edx
je 0x412a26
mov esi, dword [esi]
cmp esi, ecx
jne 0x412a12
jmp 0x412a45
push 0
push ebx
push dword [ebp - 0x18]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
test ebx, ebx
jne 0x412a45
mov eax, dword [esi + 8]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x46bcec
call fcn.004290a0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429a60
mov esp, ebp
pop ebp
ret
push eax
call fcn.00428c43
int3