Function at 0x42d400
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], ebx
push 4
mov dword [ebp - 4], 2
call fcn.004600d9
add esp, 4
mov dword [ebp - 0x38], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x42d44e
mov ecx, eax
call fcn.0042b0c0
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push ecx
add esi, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
push esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], esi
call fcn.00401700
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.0042b0f0
mov edi, eax
test edi, edi
mov dword [ebp - 0x38], edi
jne 0x42d4b5
push 0x483200
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d9e8
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
jmp 0x42d9e8
push 0xfa0
call fcn.00460104
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 4
push 0
push 0xfa0
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jg 0x42d4db
xor eax, eax
mov byte [eax + esi], 0
cmp byte [esi + 3], 0x2d
jne 0x42d4fa
push 0
push 0xfa0
push esi
push edi
call ebx
test eax, eax
jg 0x42d4f6
xor eax, eax
mov byte [eax + esi], 0
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
push str.USER
push ecx
call fcn.0040eaf0
push 0x483178
push eax
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 4
call fcn.00403630
add esp, 0x18
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push 0
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0x9c40
push esi
push edi
call ebx
test eax, eax
jg 0x42d565
xor eax, eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [eax + esi], 0
call fcn.004025d0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call fcn.0042c180
mov eax, dword [eax]
push 0x4831f4
push eax
call fcn.00451467
mov ebx, eax
mov eax, dword [ebp - 0x24]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d5b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x42d99e
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x30]
push str.PASS
push ecx
call fcn.0040eaf0
push 0x483178
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 7
call fcn.00403630
add esp, 0x18
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d607
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx - 0xc]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0xfa0
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42d62d
xor eax, eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push esi
mov byte [eax + esi], 0
call fcn.004025d0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.0042c180
mov eax, dword [eax]
push 0x4831e8
push eax
call fcn.00451467
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d67e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x42d6e6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d9e8
mov eax, dword [ebp + 0xc]
jmp 0x42d9e0
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], 3
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.004025d0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.0042c180
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
or ecx, 1
push 0x4831e4
push eax
mov dword [ebp - 0x14], ecx
call fcn.00451467
add esp, 8
test eax, eax
je 0x42d730
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp + 0xf], 1
jg 0x42d734
mov byte [ebp + 0xf], 0
test byte [ebp - 0x14], 1
je 0x42d760
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
and edx, 0xfffffffe
add eax, 0xfffffff0
mov dword [ebp - 0x14], edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x42d796
mov eax, dword [ebx - 0xc]
push 0
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0xfa0
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42d78a
xor eax, eax
mov byte [eax + esi], 0
dec dword [ebp - 0x20]
jmp 0x42d6f0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x42d855
push 0x4831d8
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
call fcn.00403630
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d7dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.00460109
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
mov dword [ebp - 4], 9
mov byte [ebp - 4], 0xc
je 0x42d7ff
mov ecx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d823
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x42d9cd
cmp byte [esi + 3], 0x2d
jne 0x42d874
push 0
push 0xfa0
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42d870
xor eax, eax
mov byte [eax + esi], 0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, str.TYPE_I_r_n
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d8a0
push 0
sub eax, edx
push eax
push str.TYPE_I_r_n
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0xfa0
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42d8cd
xor eax, eax
push esi
mov byte [eax + esi], 0
call fcn.00460109
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
mov dword [ebp - 4], 6
mov byte [ebp - 4], 0x10
je 0x42d8ff
mov ecx, eax
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x42d8ff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x4831a8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d9ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10