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

Disassembly:
push 0xffffffffffffffff
push 0x447ec9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f0
mov eax, dword [0x48b448]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x508], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4a7cb8]
mov byte [esp + 0x508], 4
cmp eax, esi
jne 0x40d1cd
cmp dword [ebp + 0x49c], 2
jne 0x40d85a
mov eax, 0x20202020
push 0x4a7c8a
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push str.CS_6s
push ecx
mov byte [esp + 0x40], al
call fcn.0042c597
add esp, 0xc
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push edx
call fcn.0043bd2c
mov esi, dword [esp + 0x1c]
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x38]
mov ebx, dword [esi - 8]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x32
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x1a0]
lea eax, [esp + 0x3c]
push ebx
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x40d1b4
mov ecx, ebp
call fcn.0040ee80
mov ecx, ebp
call fcn.0040eb30
mov eax, dword [ebp + 0x1a0]
push 0
lea edx, [esp + 0x3c]
push ebx
push edx
push eax
call sub.WSOCK32.dll_send
mov dword [ebp + 0x49c], 1
mov dword [ebp + 0x304], 0
jmp 0x40d85a
mov ecx, 0x20202020
push 0x4a7c8a
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
push str.CC_6sD
push edx
mov byte [esp + 0x40], cl
call fcn.0042c597
add esp, 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
call fcn.0043bd2c
mov eax, dword [0x4a7cb8]
cmp eax, 0x14
mov dword [esp + 0x20], eax
jle 0x40d219
mov dword [esp + 0x20], 0x14
mov eax, dword [0x4a7cc8]
lea ebx, [ebp + 0x226]
cmp eax, esi
jne 0x40d272
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call fcn.0042c575
cdq
idiv dword [0x4a7cb8]
test esi, esi
mov byte [ebx + esi], dl
jne 0x40d24e
mov esi, 1
jmp 0x40d234
xor eax, eax
test esi, esi
jle 0x40d265
mov cl, byte [esi + ebp + 0x226]
cmp cl, byte [ebx + eax]
je 0x40d265
inc eax
cmp eax, esi
jl 0x40d25b
cmp eax, esi
jne 0x40d26a
inc esi
cmp esi, dword [esp + 0x20]
jge 0x40d2a0
jmp 0x40d234
mov edx, dword [esp + 0x20]
mov cl, byte [ebx]
xor eax, eax
mov byte [ebp + 0x24f], cl
lea esi, [edx - 1]
test esi, esi
jle 0x40d293
mov cl, byte [ebx + eax + 1]
mov byte [ebx + eax], cl
inc eax
cmp eax, esi
jl 0x40d287
mov dl, byte [ebp + 0x24f]
mov byte [eax + ebp + 0x226], dl
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x40d2cb
movsx eax, byte [ebx + esi]
lea eax, [eax + eax*4]
lea ecx, [eax*2 + 0x4a7ccc]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043bf0b
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x40d2aa
mov eax, dword [0x4a7cc8]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [0x4a7cc8], eax
jle 0x40d2e8
mov dword [0x4a7cc8], 0
mov esi, dword [esp + 0x1c]
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x38]
mov ebx, dword [esi - 8]
rep stosd dword es:[edi], eax
mov ecx, 0x32
lea edi, [esp + 0x38]
cmp ebx, 0xa
rep movsd dword es:[edi], dword [esi]
jl 0x40d85a
push eax
mov eax, dword [ebp + 0x1a0]
lea edx, [esp + 0x3c]
push ebx
push edx
push eax
call sub.WSOCK32.dll_send
or esi, 0xffffffff
cmp eax, esi
jne 0x40d34c
mov ecx, ebp
call fcn.0040ee80
mov ecx, ebp
call fcn.0040eb30
mov edx, dword [ebp + 0x1a0]
push 0
lea ecx, [esp + 0x3c]
push ebx
push ecx
push edx
call sub.WSOCK32.dll_send
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x100]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x1a0]
lea eax, [esp + 0x104]
push 0x400
push eax
push ecx
call sub.WSOCK32.dll_recv
mov edi, eax
cmp edi, esi
jne 0x40d394
mov byte [esp + 0x508], 3
jmp 0x40d41c
lea edx, [esp + 0x100]
lea ecx, [esp + 0x10]
push edx
call fcn.0043bd2c
mov eax, dword [esp + 0x10]
push 0x459c4c
push eax
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40d3dc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x5bc]
call fcn.0043bcdc
mov ecx, ebp
call fcn.0040dce0
mov byte [esp + 0x508], 3
jmp 0x40d41c
mov edx, dword [esp + 0x10]
push 0x459c48
push edx
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40d464
mov ebx, 3
cmp edi, ebx
jle 0x40d415
lea eax, [esp + 0x103]
lea ecx, [ebp + 0x5bc]
push eax
call fcn.0043bd2c
mov ecx, ebp
call fcn.0040dce0
mov byte [esp + 0x508], bl
lea ecx, [esp + 0x28]
call fcn.0043bba3
lea ecx, [esp + 0x18]
mov byte [esp + 0x508], 2
call fcn.0043bba3
lea ecx, [esp + 0x24]
mov byte [esp + 0x508], 1
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x508], 0
call fcn.0043bba3
mov dword [esp + 0x508], esi
jmp 0x40d8a9
mov ecx, ebp
call fcn.0040dad0
push 8
lea ecx, [esp + 0x24]
push 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.00439c14
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50c], 5
call fcn.0043bcdc
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 4
call fcn.0043bba3
mov edi, 1
lea ecx, [esp + 0x20]
push edi
push 0x2a
call fcn.00439a28
push edi
lea edx, [esp + 0x18]
push 0xa
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x514], 6
call fcn.00439c14
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042c273
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0043bba3
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 4
call fcn.0043bba3
test bl, bl
je 0x40d618
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043b918
lea eax, [esp + 0x18]
mov ecx, 0x4a7b40
push eax
call fcn.004203d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50c], 7
call fcn.0043bcdc
lea ecx, [esp + 0x14]
mov byte [esp + 0x508], 4
call fcn.0043bba3
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043b918
lea esi, [ebp + 0x2f8]
mov ecx, esi
call fcn.00405a70
test eax, eax
je 0x40d618
mov eax, dword [esp + 0x18]
push 8
lea ecx, [ebp + 0x4a4]
push eax
push ecx
mov dword [ebp + 0x49c], edi
mov dword [ebp + 0x498], edi
call fcn.0042c330
add esp, 0xc
mov ecx, 0x14
xor eax, eax
lea edi, [ebp + 0x4ae]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push 2
push edx
lea ecx, [esp + 0x20]
call fcn.00439d26
mov eax, dword [eax]
push 0x459c44
push eax
call fcn.0042c273
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0043bba3
test bl, bl
je 0x40d5d9
mov dword [ebp + 0x4a0], 1
jmp 0x40d5e3
mov dword [ebp + 0x4a0], 0
mov ecx, esi
call fcn.00405e60
mov ecx, esi
call fcn.00406260
mov ecx, esi
call fcn.00406800
test eax, eax
je 0x40d605
push 2
mov ecx, esi
call fcn.00405cf0
mov eax, dword [0x4a7cc4]
cmp eax, 0x64
jge 0x40d732
jmp 0x40d72a
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043b918
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4a7b40
call fcn.0041ff20
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50c], 8
call fcn.0043bcdc
lea ecx, [esp + 0x14]
mov byte [esp + 0x508], 4
call fcn.0043bba3
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043b918
lea esi, [ebp + 0x2f8]
mov ecx, esi
call fcn.00405a70
test eax, eax
je 0x40d794
mov eax, dword [esp + 0x18]
push 8
lea ecx, [ebp + 0x4a4]
push eax
push ecx
mov dword [ebp + 0x49c], edi
mov dword [ebp + 0x498], 0
call fcn.0042c330
add esp, 0xc
mov ecx, 0x14
xor eax, eax
lea edi, [ebp + 0x4ae]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push 2
push edx
lea ecx, [esp + 0x20]
call fcn.00439d26
mov eax, dword [eax]
push 0x459c44
push eax
call fcn.0042c273
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0043bba3
test bl, bl
je 0x40d6f4
mov dword [ebp + 0x4a0], 1
jmp 0x40d6fe
mov dword [ebp + 0x4a0], 0
mov ecx, esi
call fcn.00405e60
mov ecx, esi
call fcn.00406260
mov ecx, esi
call fcn.00406800
test eax, eax
je 0x40d720
push 2
mov ecx, esi
call fcn.00405cf0
mov eax, dword [0x4a7cc4]
cmp eax, 0x64
jge 0x40d732
push eax
mov ecx, esi
call fcn.00406810
lea ecx, [esp + 0x28]
mov byte [esp + 0x508], 3
call fcn.0043bba3
lea ecx, [esp + 0x18]
mov byte [esp + 0x508], 2
call fcn.0043bba3
lea ecx, [esp + 0x24]
mov byte [esp + 0x508], 1
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x508], 0
call fcn.0043bba3
lea ecx, [esp + 0x10]
mov dword [esp + 0x508], 0xffffffff
call fcn.0043bba3
mov eax, 1
jmp 0x40d8b4
push edi
push 0x2a
lea ecx, [esp + 0x28]
call fcn.00439a28
push edi
lea eax, [esp + 0x18]
push 0xa
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x514], 9
call fcn.00439c14
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042c273
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.0043bba3
lea ecx, [esp + 0x20]
mov byte [esp + 0x508], 4
call fcn.0043bba3
test bl, bl
je 0x40d85a
push 0
push 0x459524
lea ecx, [esp + 0x18]
call fcn.00439d9e
push 0x459c40
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.0043bd2c
add edi, 0xfffffff4
lea edx, [esp + 0x14]
push edi
push 0xc
push edx
lea ecx, [esp + 0x1c]
call fcn.00439c14
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50c], 0xa
call fcn.0043bf47
lea ecx, [esp + 0x14]
mov byte [esp + 0x508], 4
call fcn.0043bba3
mov eax, dword [esp + 0x28]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp + 0x1a0]
push eax
call sub.WSOCK32.dll_send
lea ecx, [esp + 0x28]
mov byte [esp + 0x508], 3
call fcn.0043bba3
lea ecx, [esp + 0x18]
mov byte [esp + 0x508], 2
call fcn.0043bba3
lea ecx, [esp + 0x24]
mov byte [esp + 0x508], 1
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x508], 0
call fcn.0043bba3
mov dword [esp + 0x508], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0043bba3
xor eax, eax
mov ecx, dword [esp + 0x500]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4fc
ret