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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x54deda
test ebx, ebx
jne 0x46a17d
xor eax, eax
jmp 0x46a646
cmp dword [ebx + 0x438], 2
jne 0x46a45d
mov edx, dword [ebx + 0x43c]
sub edx, 0x82
je 0x46a1a0
dec edx
je 0x46a209
jmp 0x46a44e
mov dword [ebx + 0x43c], 0x83
lea ecx, [ebx + 0x234]
push ecx
lea eax, [ebx + 0x130]
push eax
imul edx, dword [0x533af8], 0x64
add edx, 0x533a30
push edx
push str.130__s__s_s_n
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
push edi
call fcn.005183dc
pop ecx
push eax
push edi
push dword [ebx + 0x454]
call sub.WSOCK32.dll_send
push 0x21
push 0x40f
push dword [0x537420]
push dword [ebx + 0x454]
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x46a646
push 0
push 0
push dword [0x537420]
push dword [ebx + 0x454]
call sub.WSOCK32.dll_WSAAsyncSelect
push 0
push 0x2000
push edi
push dword [ebx + 0x454]
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x46a44e
test esi, esi
jle 0x46a44e
mov byte [edi + esi], 0
push edi
call fcn.004b0463
test eax, eax
je 0x46a44e
xor esi, esi
lea eax, [ebp - 0x14]
xor edx, edx
mov dword [eax], edx
inc esi
add eax, 4
cmp esi, 4
jl 0x46a25b
push 0x52e927
push edi
call fcn.00518794
add esp, 8
xor ecx, ecx
mov esi, ecx
mov dword [ebp + ecx*4 - 0x14], eax
jmp 0x46a285
cmp esi, 3
jge 0x46a29d
push 0x52e92a
push 0
call fcn.00518794
add esp, 8
inc esi
mov dword [ebp + esi*4 - 0x14], eax
test eax, eax
jne 0x46a280
cmp esi, 2
jl 0x46a44e
push dword [ebp - 0x10]
call fcn.004b04bc
test eax, eax
je 0x46a44e
push dword [ebp - 0x14]
call fcn.0052175c
pop ecx
mov esi, eax
cmp esi, 0x83
je 0x46a330
mov esi, dword [0x529f18]
test esi, esi
je 0x46a309
cmp dword [esi + 0x538], 0
je 0x46a2ff
cmp dword [esi + 0x51c], 3
jne 0x46a2ff
lea eax, [ebx + 0xcc]
push eax
lea edx, [esi + 0x4b8]
push edx
call fcn.005185a0
add esp, 8
test eax, eax
je 0x46a309
mov esi, dword [esi + 0x87c]
test esi, esi
jne 0x46a2d3
test esi, esi
je 0x46a44e
push dword [0x52a380]
push 0
push 0xb61
call fcn.00415c87
push eax
push dword [esi]
call fcn.004c7cd0
jmp 0x46a44e
push 0xa
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0xc]
call fcn.00522c80
add esp, 0xc
mov dword [ebx + 0x420], eax
cmp dword [0x532a54], 0
jne 0x46a370
jmp 0x46a358
mov eax, dword [ebp - 4]
mov byte [eax], 0x5f
push 0x20
lea edx, [ebx + 0x234]
push edx
call fcn.0051833c
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x46a352
push 0
push 0
lea edx, [ebx + 0x130]
push edx
lea esi, [ebx + 0x234]
push esi
call fcn.0046171f
push esi
call fcn.00415f93
test eax, eax
jne 0x46a44e
mov eax, dword [0x52c438]
mov dword [0x5375b4], eax
cmp dword [0x52cd20], 0
je 0x46a3bd
push 0x451200
push 0x32a
push dword [0x537420]
call fcn.0044ea80
push ebx
call fcn.00469552
test eax, eax
je 0x46a44e
mov edx, dword [0x52cc84]
mov dword [ebx + 0x424], edx
xor ecx, ecx
mov dword [0x52cc84], ecx
push 0
call fcn.00526bc8
pop ecx
mov dword [ebx + 0x450], eax
push esi
lea eax, [ebx + 4]
push eax
push str.Get__s__s
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0
push 2
push 3
push edi
call fcn.004fd21f
mov esi, eax
mov dword [ebx], esi
test esi, esi
je 0x46a44e
push dword [ebx + 0x424]
imul eax, dword [0x533af8], 0x64
add eax, 0x533a30
push eax
push str.132__s__lu_n
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0
push edi
call fcn.005183dc
pop ecx
push eax
push edi
push dword [ebx + 0x454]
call sub.WSOCK32.dll_send
jmp 0x46a45d
push 0
push ebx
call fcn.004690ea
xor eax, eax
jmp 0x46a646
xor edx, edx
mov dword [ebx + 0x414], edx
xor ecx, ecx
mov dword [ebx + 0x41c], ecx
push 0
call fcn.00526bc8
pop ecx
mov esi, eax
mov dword [ebx + 0x448], esi
mov dword [ebx + 0x44c], esi
mov dword [ebx + 0x404], 4
lea eax, [ebx + 0x130]
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 2
push edi
call fcn.00416273
test eax, eax
jne 0x46a503
push 0
push 0
push edi
push 0x52e945
call fcn.0046171f
push 2
push edi
call fcn.00416273
test eax, eax
jne 0x46a503
push edi
mov esi, edi
mov edi, 0x52feac
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
cmp byte [edi], 0
je 0x46a524
push edi
call fcn.005183dc
pop ecx
cmp byte [edi + eax - 1], 0x5c
je 0x46a524
push 0x52e949
push edi
call fcn.00518300
add esp, 8
lea eax, [ebx + 0x130]
push edi
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [ebx + 0x234]
push eax
push edi
call fcn.00518300
add esp, 8
cmp dword [ebx + 0x424], 0
jbe 0x46a5ad
push 0x180
push 0x20
push 0x8901
push edi
call fcn.0051e680
add esp, 0x10
mov dword [ebx + 0x400], eax
test eax, eax
jge 0x46a59f
push 1
push ebx
push 0
push 0xb62
call fcn.00415c87
push eax
call fcn.00469c75
xor eax, eax
jmp 0x46a646
mov edx, dword [ebx + 0x424]
mov dword [ebx + 0x414], edx
jmp 0x46a5e5
push 0x180
push 0x20
push 0x8301
push edi
call fcn.0051e680
add esp, 0x10
mov dword [ebx + 0x400], eax
test eax, eax
jge 0x46a5e5
push 1
push ebx
push 0
push 0xb62
call fcn.00415c87
push eax
call fcn.00469c75
xor eax, eax
jmp 0x46a646
push 0
push 0xb63
call fcn.00415c87
push eax
push 1
push 1
push 1
push 1
push ebx
call fcn.004f0350
push 0
push 0xb64
call fcn.00415c87
push eax
push 0
push 0
push 0
push 0
push ebx
call fcn.004f0350
cmp dword [0x528300], 0
je 0x46a62c
push 0x1c
push ebx
call fcn.00469284
push 0x23
push 0x412
push dword [0x537420]
push dword [ebx + 0x454]
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4