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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb24
mov eax, dword [ebp + 8]
push ebx
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
push esi
push edi
jne case.0x501ac4.101
cmp eax, 0x20
je case.0x501ac4.101
cmp dword [0x609cd8], 0xffffffff
je 0x502638
call fcn.00502b30
test eax, eax
mov dword [esp + 0x10], eax
je case.0x501ac4.101
mov edx, dword [0x609cd8]
push 0
push 0x103
push 0x63c690
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je case.0x501ac4.101
cmp eax, 1
jle case.0x501ac4.101
mov ecx, dword [0x609cd8]
push 0
mov byte [eax + 0x63c690], 0
mov eax, dword [0x645324]
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
push 0x63c690
mov dword [0x63c29c], 0
call fcn.005017f0
add esp, 4
test eax, eax
je case.0x501ac4.101
cmp byte [0x63c690], 0x20
mov esi, 0x63c690
jne 0x501a28
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x501a20
cmp byte [esi], 0
je case.0x501ac4.101
push 0x20
push esi
call fcn.005cbf10
add esp, 8
test eax, eax
je case.0x501ac4.101
lea ebx, [eax + 1]
mov byte [eax], 0
cmp byte [ebx], 0x20
mov dword [esp + 0x14], esi
jne 0x501a5b
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x501a53
cmp byte [ebx], 0
je case.0x501ac4.101
push 0x20
push ebx
call fcn.005cbf10
mov esi, eax
add esp, 8
test esi, esi
je 0x501a8f
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jne 0x501a88
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x501a80
cmp byte [esi], 0
jne 0x501a8f
xor esi, esi
push ebx
call fcn.00501830
add esp, 4
test eax, eax
je case.0x501ac4.101
mov edx, dword [esp + 0x14]
push edx
call fcn.005cbe51
mov dword [esp + 0x18], eax
add eax, 0xffffff9c
add esp, 4
cmp eax, 0x1e
ja case.0x501ac4.101
movzx eax, byte [eax + 0x502678]
jmp dword [eax*4 + 0x502668]
cmp dword [0x6138b0], 2
je 0x501dd2
mov eax, dword [0x609cc8]
test eax, eax
jne 0x501aec
cmp dword [esp + 0x14], 0x64
je 0x501dd2
mov eax, dword [0x609ccc]
test eax, eax
jne 0x501b00
cmp dword [esp + 0x14], 0x6e
je 0x501dd2
mov eax, dword [esp + 0x14]
cmp eax, 0x64
jne 0x501b68
test byte [0x63aac8], 0x20
jne 0x501dd2
mov esi, dword [0x611900]
xor edi, edi
test esi, esi
je 0x501bbe
mov eax, dword [esi + 0x520]
test eax, eax
je 0x501b5c
mov eax, dword [esi + 0x540]
test eax, eax
jne 0x501b5c
lea ecx, [esi + 0x4b8]
push 0x63c798
push ecx
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x501b5c
inc edi
cmp edi, 3
jg 0x501dd2
mov esi, dword [esi + 0x890]
test esi, esi
jne 0x501b26
jmp 0x501bbe
cmp eax, 0x6e
jne 0x501bbe
test byte [0x63aac8], 0x10
jne 0x501dd2
mov esi, dword [0x611900]
test esi, esi
je 0x501bbe
mov eax, dword [esi + 0x520]
test eax, eax
je 0x501bb4
mov eax, dword [esi + 0x540]
test eax, eax
je 0x501bb4
lea edx, [esi + 0x4b8]
push 0x63c798
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x501dd2
mov esi, dword [esi + 0x890]
test esi, esi
jne 0x501b84
mov eax, dword [0x637b84]
test eax, eax
je 0x501c4c
push 0x63c798
push ebx
push str._s_id__s
push 0x63c2a8
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x63c2a8
call fcn.005e3ca4
push 0
push 0
push 0x5e6e98
push 0x63c2a8
call fcn.004c84a0
add esp, 0x24
test eax, eax
je 0x501c4c
mov eax, dword [str.151_rejected_n]
mov edx, dword [0x5e8470]
mov ecx, dword [0x5e846c]
mov dword [0x63c690], eax
mov ax, word [0x5e8474]
mov word [0x63c69c], ax
mov eax, 0x63c690
mov dword [0x63c698], edx
mov dword [0x63c694], ecx
lea edx, [eax + 1]
jmp 0x501c40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x501c40
jmp 0x502267
cmp dword [esp + 0x14], 0x6e
jne 0x501c77
mov al, byte [0x6138c8]
test al, al
je 0x501dd2
push 2
push 0x6138c8
call fcn.00425b60
add esp, 8
test eax, eax
je 0x501dd2
call fcn.00434290
mov esi, eax
test esi, esi
je 0x501dd2
push ebx
lea edx, [esi + 0x3f0]
push 0x64
push edx
call fcn.00423900
push 0x63c798
lea edi, [esi + 0x4b8]
push 0x64
push edi
call fcn.00423900
push edi
lea eax, [esi + 0x454]
push 0x64
push eax
call fcn.00423900
mov cx, word [0x609cd0]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov word [esi + 0x51c], cx
mov dword [esi + 0x520], 5
mov dword [esi + 0x534], 3
mov dword [esi + 0x538], ebx
mov dword [esi + 0x88c], edx
mov eax, dword [0x6099c0]
add esp, 0x24
cmp eax, 1
mov dword [esi + 0x868], eax
jge 0x501d0c
mov dword [esi + 0x868], 1
jmp 0x501d1b
cmp eax, 0x14
jle 0x501d1b
mov dword [esi + 0x868], 0x14
push 0x6138c8
lea edi, [esi + 0x544]
push 0x104
push edi
call fcn.00423900
push edi
call fcn.00423a30
push edi
lea ecx, [esi + 0x648]
push 0x104
push ecx
call fcn.00423900
push 0x6139d0
lea edx, [esi + 0x74c]
push 0x104
push edx
call fcn.00423900
add esp, 0x28
cmp ebx, 0x6e
jne 0x501d6e
mov eax, 1
jmp 0x501d70
xor eax, eax
mov dword [esi + 0x528], eax
mov dword [esi + 0x540], eax
mov eax, dword [0x63fb90]
test eax, eax
je 0x501e1e
xor eax, eax
mov ecx, 0x202
lea edi, [esp + 0x328]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x328]
push eax
push 0
push 0
push 0xf
push str.DCCSERVER
push 0
push 0
push ecx
mov dword [esp + 0x350], esi
call fcn.00532e60
add esp, 0x20
test eax, eax
jne 0x501e1e
push eax
push esi
call fcn.00434680
add esp, 8
mov eax, dword [0x5ee1c0]
mov edx, dword [str.150_unavailable_n]
mov ecx, dword [0x5ee1c4]
mov dword [0x63c694], eax
mov al, byte [0x5ee1cc]
mov dword [0x63c690], edx
mov edx, dword [0x5ee1c8]
mov byte [0x63c6a0], al
mov eax, 0x63c690
mov dword [0x63c69c], edx
mov dword [0x63c698], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x501e12
jmp 0x502267
mov edx, dword [0x609cd8]
mov dword [esi + 0x888], edx
mov dword [0x609cd8], 0xffffffff
mov eax, dword [esi + 0x888]
push eax
call fcn.0058be80
mov ecx, dword [0x645324]
add esp, 4
push 0
push 0
push 0x801e
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
call fcn.00501530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x501ac4.101
push 0x20
push esi
call fcn.005cbf10
add esp, 8
test eax, eax
je case.0x501ac4.101
lea edi, [eax + 1]
mov byte [eax], 0
cmp byte [edi], 0x20
mov dword [esp + 0x18], esi
jne 0x501e9c
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x501e94
cmp byte [edi], 0
je case.0x501ac4.101
mov edx, dword [esp + 0x10]
push edx
push edi
call fcn.005018d0
mov eax, dword [0x609cc4]
add esp, 8
test eax, eax
je 0x502169
cmp dword [0x6138a8], 2
je 0x502169
test byte [0x63aac8], 8
jne 0x502169
mov eax, dword [0x644924]
test eax, eax
je 0x501f0a
push 0x63c798
push ebx
push str._s_id__s
push 0x63c2a8
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x63c2a8
call fcn.00575320
add esp, 0x14
test eax, eax
jne 0x501f6f
mov eax, dword [0x609c30]
test eax, eax
je 0x501f28
push 0
push 0
push edi
call fcn.004c9270
add esp, 0xc
test eax, eax
jne 0x502169
mov eax, dword [0x637b84]
test eax, eax
je 0x501f6f
push 0x63c798
push ebx
push str._s_id__s
push 0x63c2a8
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x63c2a8
call fcn.005e3ca4
push 0
push 0
push 0x5e6e98
push 0x63c2a8
call fcn.004c84a0
add esp, 0x24
test eax, eax
jne 0x5020d0
call fcn.0049c780
mov esi, eax
test esi, esi
je 0x502169
push ebx
lea eax, [esi + 4]
push 0x64
push eax
call fcn.00423900
push 0x63c798
lea ebx, [esi + 0xcc]
push 0x64
push ebx
call fcn.00423900
push ebx
lea ecx, [esi + 0x68]
push 0x64
push ecx
call fcn.00423900
mov dx, word [0x609cd0]
mov ecx, dword [esp + 0x34]
mov eax, 1
push 0xa
mov word [esi + 0x454], dx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x440], eax
mov dword [esi + 0x47c], eax
mov eax, dword [esp + 0x3c]
push 0
push edx
mov dword [esi + 0x480], eax
mov dword [esi + 0x4b8], ecx
call fcn.005cc742
mov dword [esi + 0x464], eax
mov eax, 0x63c2a8
add esp, 0x30
sub eax, edi
lea ebx, [ebx]
mov cl, byte [edi]
mov byte [edi + eax], cl
inc edi
test cl, cl
jne 0x502000
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x30]
push eax
push 0x63c2a8
call fcn.005cc984
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x40]
push edx
lea edi, [esi + 0x234]
push 0x5e6a64
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
lea eax, [esi + 0x130]
push eax
push edi
call fcn.0048b9a0
push edi
call fcn.00425960
add esp, 0x38
test eax, eax
jne 0x50215e
mov eax, dword [0x63fb90]
test eax, eax
je 0x502112
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x202
lea edi, [esp + 0x328]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x328]
push ecx
push eax
push eax
push 0xf
push str.DCCSERVER
push eax
push eax
push edx
mov dword [esp + 0x34c], esi
call fcn.00532e60
add esp, 0x20
test eax, eax
je 0x50215e
mov eax, dword [esi + 0x450]
test eax, eax
je 0x502112
push 0
push esi
call fcn.0049cd40
add esp, 8
mov eax, dword [str.151_rejected_n]
mov edx, dword [0x5e8470]
mov ecx, dword [0x5e846c]
mov dword [0x63c690], eax
mov ax, word [0x5e8474]
mov word [0x63c69c], ax
mov eax, 0x63c690
mov dword [0x63c698], edx
mov dword [0x63c694], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502106
jmp 0x502267
mov edx, dword [0x609cd8]
mov dword [esi + 0x4b0], edx
mov dword [0x609cd8], 0xffffffff
mov eax, dword [esi + 0x4b0]
push eax
call fcn.0058be80
mov ecx, dword [0x645324]
add esp, 4
push 0
push 0
push 0x8011
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 1
call fcn.00501530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.0049cd40
add esp, 8
mov eax, dword [0x5ee1c0]
mov edx, dword [str.150_unavailable_n]
mov ecx, dword [0x5ee1c4]
mov dword [0x63c694], eax
mov al, byte [0x5ee1cc]
mov dword [0x63c690], edx
mov edx, dword [0x5ee1c8]
mov byte [0x63c6a0], al
mov eax, 0x63c690
mov dword [0x63c69c], edx
mov dword [0x63c698], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5021b0
jmp 0x502267
test esi, esi
je case.0x501ac4.101
cmp byte [esi], 0
je case.0x501ac4.101
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.005018d0
mov eax, dword [0x637b84]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
test eax, eax
je 0x50227d
push 0x63c798
push ebx
push str._s_id__s
push 0x63c2a8
call edi
push 0x63c2a8
call fcn.005e3ca4
push 0
push 0
push 0x5e6e98
push 0x63c2a8
call fcn.004c84a0
add esp, 0x24
test eax, eax
je 0x50227d
mov eax, dword [str.151_rejected_n]
mov edx, dword [0x5e8470]
mov ecx, dword [0x5e846c]
mov dword [0x63c690], eax
mov ax, word [0x5e8474]
mov word [0x63c69c], ax
mov eax, 0x63c690
mov dword [0x63c698], edx
mov dword [0x63c694], ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502260
mov ecx, dword [0x609cd8]
push 0
sub eax, edx
push eax
push 0x63c690
push ecx
jmp 0x502609
mov ecx, 0x63c2a8
sub ecx, esi
mov al, byte [esi]
mov byte [esi + ecx], al
inc esi
test al, al
jne 0x502284
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x63c2a8
call fcn.005cc984
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x140]
push ecx
push 0x5e6a64
push 0x63c2a8
call edi
push 0x63c2a8
call fcn.00425960
add esp, 0x28
test eax, eax
jne 0x5025b1
mov edi, dword [0x611900]
test edi, edi
je 0x5025b1
mov esi, 3
mov eax, dword [edi + 0x540]
test eax, eax
je 0x50231d
cmp dword [edi + 0x520], esi
jne 0x50231d
lea edx, [edi + 0x4b8]
push 0x63c798
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x50232c
mov edi, dword [edi + 0x890]
test edi, edi
jne 0x5022f3
jmp 0x5025b1
push 0x63c2a8
lea eax, [edi + 0x648]
push eax
push 0x5ee1b4
push 0x63dcd8
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
push 0x63dcd8
call fcn.00425b60
add esp, 0x18
test eax, eax
je 0x5025b1
mov esi, dword [0x641548]
test esi, esi
mov dword [esp + 0x10], 0
je 0x5023ac
lea ebx, [edi + 0x4b8]
jmp 0x502380
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x5023a2
lea eax, [esi + 0xcc]
push ebx
push eax
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x5023a2
inc dword [esp + 0x10]
mov esi, dword [esi + 0x3d4]
test esi, esi
jne 0x502380
mov ecx, dword [esp + 0x10]
cmp ecx, dword [edi + 0x868]
jge 0x5025b1
call fcn.0053d380
test eax, eax
jne 0x5025b1
mov edx, dword [edi + 0x88c]
push edx
call fcn.00502a60
add esp, 4
test eax, eax
je 0x5025b1
call fcn.0053d150
mov esi, eax
test esi, esi
je 0x5025b1
lea eax, [edi + 0x3f0]
push eax
lea ecx, [esi + 4]
push 0x64
push ecx
call fcn.00423900
lea edx, [edi + 0x4b8]
push edx
lea eax, [esi + 0xcc]
push 0x64
push eax
call fcn.00423900
lea ecx, [edi + 0x454]
push ecx
lea edx, [esi + 0x68]
push 0x64
push edx
call fcn.00423900
lea eax, [edi + 0x648]
push eax
lea ebx, [esi + 0x130]
push 0x104
push ebx
call fcn.00423900
push 0x63c2a8
lea eax, [esi + 0x234]
push 0x104
push eax
call fcn.00423900
push ebx
call fcn.00426aa0
mov ax, word [0x609cd0]
mov ecx, dword [esp + 0x54]
mov word [esi + 0x354], ax
mov eax, 1
add esp, 0x40
mov dword [esi + 0x374], eax
mov dword [esi + 0x3ac], eax
mov dword [esi + 0x33c], eax
lea eax, [esi + 0x234]
push eax
push ebx
mov dword [esi + 0x378], 3
mov dword [esi + 0x37c], ecx
mov edx, dword [edi + 0x88c]
push 0x5e6a64
push 0x63c2a8
mov dword [esi + 0x3d0], edx
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0x63c2a8
call fcn.004243c0
add esp, 0x18
test eax, eax
je 0x50259c
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x364], ecx
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp eax, eax
jne 0x50259c
cmp ecx, dword [esp + 0x1c]
jne 0x50259c
mov edx, dword [0x609cd8]
mov dword [esi + 0x3cc], edx
mov dword [0x609cd8], 0xffffffff
mov eax, dword [esi + 0x3cc]
push eax
call fcn.0058be80
mov ecx, dword [esi + 0x364]
mov edx, dword [edi + 0x88c]
push ecx
add edx, 0xdfc
push edx
push str.131__s__lu_n
push 0x63c2a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x63c2a8
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x502552
push 0
sub eax, edx
push eax
mov eax, dword [esi + 0x3cc]
push 0x63c2a8
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [0x645324]
mov edx, dword [esi + 0x3cc]
push 0x21
push 0x8014
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
push 1
call fcn.00501530
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
mov dword [esi + 0x364], 0
call fcn.0053dbb0
add esp, 8
mov eax, dword [str.150_unavailable_n]
mov ecx, dword [0x5ee1c0]
mov edx, dword [0x5ee1c4]
mov dword [0x63c690], eax
mov eax, dword [0x5ee1c8]
mov dword [0x63c694], ecx
mov cl, byte [0x5ee1cc]
mov dword [0x63c69c], eax
mov eax, 0x63c690
mov dword [0x63c698], edx
mov byte [0x63c6a0], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5025f1
push 0
sub eax, edx
mov edx, dword [0x609cd8]
push eax
push 0x63c690
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x609cd8]
cmp eax, 0xffffffff
je 0x502638
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov eax, dword [0x609cd8]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x609cd8], 0xffffffff
mov eax, dword [0x609cd4]
cmp eax, 0xffffffff
mov dword [0x63c29c], 0
je 0x502661
mov ecx, dword [0x645324]
push 8
push 0x8034
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret