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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x828
push ebx
push ebp
mov eax, ecx
shr eax, 0x10
test eax, eax
push esi
push edi
jne case.0x4daeb5.101
cmp ecx, 0x20
je case.0x4daeb5.101
cmp dword [0x589b1c], 0xffffffff
je 0x4db078
call fcn.004dbf30
test eax, eax
mov dword [esp + 0x10], eax
je case.0x4daeb5.101
mov ecx, dword [0x589b1c]
push 0
push 0x103
push 0x599fd8
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je case.0x4daeb5.101
cmp eax, 1
jle case.0x4daeb5.101
mov edx, dword [0x5a1b00]
push 0
push 0
mov byte [eax + 0x599fd8], 0
mov eax, dword [0x589b1c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov ecx, 0x599fd8
mov dword [0x599bd8], 0
call fcn.004dac20
test eax, eax
je case.0x4daeb5.101
cmp byte [0x599fd8], 0x20
mov esi, 0x599fd8
jne 0x4dae1f
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4dae17
cmp byte [esi], 0
je case.0x4daeb5.101
push 0x20
push esi
call fcn.00563730
add esp, 8
test eax, eax
je case.0x4daeb5.101
lea edi, [eax + 1]
mov byte [eax], 0
cmp byte [edi], 0x20
mov ebx, esi
jne 0x4dae50
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x4dae48
cmp byte [edi], 0
je case.0x4daeb5.101
push 0x20
push edi
call fcn.00563730
mov esi, eax
add esp, 8
test esi, esi
je 0x4dae84
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jne 0x4dae7d
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4dae75
cmp byte [esi], 0
jne 0x4dae84
xor esi, esi
mov ecx, edi
mov ebp, edi
call fcn.004dac60
test eax, eax
je case.0x4daeb5.101
push ebx
call fcn.00563a6c
mov dword [esp + 0x18], eax
add eax, 0xffffff9c
add esp, 4
cmp eax, 0x1e
ja case.0x4daeb5.101
movzx ecx, byte [eax + 0x4dbabc]
jmp dword [ecx*4 + 0x4dbaac]
cmp dword [0x594298], 2
je 0x4db266
mov eax, dword [0x599be0]
test eax, eax
mov ebp, dword [esp + 0x14]
jne 0x4daedf
cmp ebp, 0x64
je 0x4db266
mov eax, dword [0x599be4]
test eax, eax
jne 0x4daef1
cmp ebp, 0x6e
je 0x4db266
cmp ebp, 0x64
jne 0x4daf55
test byte [0x5988d4], 0x20
jne 0x4db266
mov esi, dword [0x592640]
xor ebx, ebx
test esi, esi
je 0x4dafab
mov eax, dword [esi + 0x520]
test eax, eax
je 0x4daf49
mov eax, dword [esi + 0x540]
test eax, eax
jne 0x4daf49
lea edx, [esi + 0x4b8]
push 0x59a0e0
push edx
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x4daf49
inc ebx
cmp ebx, 3
jg 0x4db266
mov esi, dword [esi + 0x88c]
test esi, esi
jne 0x4daf13
jmp 0x4dafab
cmp ebp, 0x6e
jne 0x4dafab
test byte [0x5988d4], 0x10
jne 0x4db266
mov esi, dword [0x592640]
test esi, esi
je 0x4dafab
mov eax, dword [esi + 0x520]
test eax, eax
je 0x4dafa1
mov eax, dword [esi + 0x540]
test eax, eax
je 0x4dafa1
lea eax, [esi + 0x4b8]
push 0x59a0e0
push eax
call fcn.00572b46
add esp, 8
test eax, eax
je 0x4db266
mov esi, dword [esi + 0x88c]
test esi, esi
jne 0x4daf71
mov eax, dword [0x5981d0]
test eax, eax
je 0x4db0a9
push 0x59a0e0
push edi
push str._s_id__s
push 0x599bf0
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x599bf0
call fcn.00572bde
add esp, 0x14
push 0
push 0
mov edx, 0x574d0c
mov ecx, 0x599bf0
call fcn.004ab290
test eax, eax
je 0x4db0a9
mov ecx, dword [str.151_rejected_n]
mov eax, dword [0x575b88]
mov edx, dword [0x575b84]
mov dword [0x599fd8], ecx
mov cx, word [0x575b8c]
mov dword [0x599fe0], eax
mov eax, 0x599fd8
mov dword [0x599fdc], edx
mov word [0x599fe4], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db030
push 0
sub eax, edx
mov edx, dword [0x589b1c]
push eax
push 0x599fd8
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x589b1c]
cmp eax, 0xffffffff
je 0x4db078
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, dword [0x589b1c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x589b1c], 0xffffffff
mov eax, dword [0x589b18]
cmp eax, 0xffffffff
mov dword [0x599bd8], 0
je 0x4db0a1
mov edx, dword [0x5a1b00]
push 8
push 0x8034
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebp, 0x6e
jne 0x4db121
mov al, byte [0x5942c0]
test al, al
je 0x4db266
mov edx, 2
mov ecx, 0x5942c0
call fcn.0041ef30
test eax, eax
je 0x4db266
mov eax, dword [0x58999c]
test eax, eax
je 0x4db121
push edi
mov edx, 0x64
mov ecx, 0x592648
call fcn.0041e120
xor eax, eax
mov cl, byte [eax + 0x5942c0]
mov byte [eax + 0x5990e0], cl
inc eax
test cl, cl
jne 0x4db0f1
mov ecx, dword [0x5a1b00]
push 0
push 0x4669e0
mov edx, 0x334
call fcn.00464b70
test eax, eax
jle 0x4db266
call fcn.0042ace0
mov esi, eax
test esi, esi
je 0x4db266
push edi
lea ecx, [esi + 0x3f0]
mov edx, 0x64
call fcn.0041e120
lea edi, [esi + 0x4b8]
push 0x59a0e0
mov edx, 0x64
mov ecx, edi
call fcn.0041e120
push edi
lea ecx, [esi + 0x454]
mov edx, 0x64
call fcn.0041e120
mov ax, word [0x589b14]
mov ebx, dword [esp + 0x10]
mov word [esi + 0x51c], ax
mov dword [esi + 0x520], 5
mov dword [esi + 0x534], 3
mov dword [esi + 0x538], ebp
mov dword [esi + 0x888], ebx
mov ecx, dword [0x589924]
mov eax, ecx
cmp eax, 1
mov dword [esi + 0x868], ecx
jge 0x4db1b9
mov dword [esi + 0x868], 1
jmp 0x4db1c8
cmp eax, 0x14
jle 0x4db1c8
mov dword [esi + 0x868], 0x14
lea edi, [esi + 0x544]
push 0x5942c0
mov edx, 0x104
mov ecx, edi
call fcn.0041e120
push edi
lea ecx, [esi + 0x648]
mov edx, 0x104
call fcn.0041e120
push 0x5943c8
lea ecx, [esi + 0x74c]
mov edx, 0x104
call fcn.0041e120
cmp ebp, 0x6e
jne 0x4db211
mov eax, 1
jmp 0x4db213
xor eax, eax
mov dword [esi + 0x528], eax
mov dword [esi + 0x540], eax
mov eax, dword [0x59ca60]
test eax, eax
je 0x4db2c3
xor eax, eax
lea edx, [esp + 0x40]
push edx
push eax
push eax
push 0xf
mov ecx, 0x1fe
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push str.DCCSERVER
push eax
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x60], esi
call fcn.00506dd0
test eax, eax
jne 0x4db2c3
xor edx, edx
mov ecx, esi
call fcn.0042b2c0
mov eax, dword [0x57a8f8]
mov edx, dword [str.150_unavailable_n]
mov ecx, dword [0x57a8fc]
mov dword [0x599fdc], eax
mov al, byte [0x57a904]
mov dword [0x599fd8], edx
mov edx, dword [0x57a900]
mov byte [0x599fe8], al
mov eax, 0x599fd8
mov dword [0x599fe4], edx
mov dword [0x599fe0], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db2a6
mov ecx, dword [0x589b1c]
push 0
sub eax, edx
push eax
push 0x599fd8
push ecx
jmp 0x4db048
mov eax, dword [0x589b1c]
mov dword [esi + 0x884], eax
mov dword [0x589b1c], 0xffffffff
mov ecx, dword [esi + 0x884]
call fcn.0053e860
cmp ebp, 0x6e
jne 0x4db301
mov ecx, esi
call fcn.0042c170
mov ecx, 1
call fcn.004da9a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x589b78]
test eax, eax
je 0x4db33c
mov eax, dword [0x59bf94]
cmp eax, 1
jne 0x4db321
mov ecx, dword [0x589b7c]
call fcn.0041c8b0
jmp 0x4db33c
cmp eax, 2
jne 0x4db33c
push ebx
xor edx, edx
xor ecx, ecx
call fcn.00473bf0
mov edx, 1
mov ecx, eax
call fcn.00517a40
mov ecx, dword [0x5a1b00]
push 0
push 0
push 0x8020
push ecx
jmp 0x4db656
test esi, esi
je case.0x4daeb5.101
push 0x20
push esi
call fcn.00563730
add esp, 8
test eax, eax
je case.0x4daeb5.101
lea edi, [eax + 1]
mov byte [eax], 0
cmp byte [edi], 0x20
mov dword [esp + 0x18], esi
jne 0x4db388
jmp 0x4db380
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x4db380
cmp byte [edi], 0
je case.0x4daeb5.101
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.004dacf0
mov eax, dword [0x599bdc]
test eax, eax
je 0x4db677
cmp dword [0x594290], 2
je 0x4db677
test byte [0x5988d4], 8
jne 0x4db677
mov eax, dword [0x5a1530]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
je 0x4db3f5
push 0x59a0e0
push ebp
push str._s_id__s
push 0x599bf0
call ebx
add esp, 0x10
mov ecx, 0x599bf0
call fcn.0052d550
test eax, eax
jne 0x4db454
mov eax, dword [0x589a80]
test eax, eax
je 0x4db411
push 0
xor edx, edx
mov ecx, edi
call fcn.004abf20
test eax, eax
jne 0x4db677
mov eax, dword [0x5981d0]
test eax, eax
je 0x4db454
push 0x59a0e0
push ebp
push str._s_id__s
push 0x599bf0
call ebx
push 0x599bf0
call fcn.00572bde
add esp, 0x14
push 0
push 0
mov edx, 0x574d0c
mov ecx, 0x599bf0
call fcn.004ab290
test eax, eax
jne 0x4db5a0
call fcn.0048a5c0
mov esi, eax
test esi, esi
je 0x4db677
push ebp
lea ecx, [esi + 4]
mov edx, 0x64
call fcn.0041e120
lea ebp, [esi + 0xcc]
push 0x59a0e0
mov edx, 0x64
mov ecx, ebp
call fcn.0041e120
push ebp
lea ecx, [esi + 0x68]
mov edx, 0x64
call fcn.0041e120
mov dx, word [0x589b14]
mov ecx, dword [esp + 0x10]
mov eax, 1
push 0xa
mov word [esi + 0x454], dx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x440], eax
mov dword [esi + 0x47c], eax
mov eax, dword [esp + 0x18]
push 0
push edx
mov dword [esi + 0x480], eax
mov dword [esi + 0x4b8], ecx
call fcn.005639fd
mov dword [esi + 0x464], eax
mov eax, 0x599bf0
add esp, 0xc
sub eax, edi
mov cl, byte [edi]
mov byte [edi + eax], cl
inc edi
test cl, cl
jne 0x4db4e7
push 0x5902c8
push 0x5901c8
push 0x5900c8
push 0x5900c0
push 0x599bf0
call fcn.00563b42
push 0x5902c8
push 0x5901c8
lea edi, [esi + 0x234]
push 0x574904
push edi
call ebx
add esp, 0x24
push 0
push 0
lea edx, [esi + 0x130]
mov ecx, edi
call fcn.0047d5b0
mov ecx, edi
call fcn.0041ed60
test eax, eax
jne 0x4db66e
mov eax, dword [0x59ca60]
test eax, eax
je 0x4db5e4
xor eax, eax
mov ecx, 0x1fe
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0xf
push str.DCCSERVER
push 0
xor edx, edx
mov dword [esp + 0x5c], esi
call fcn.00506dd0
test eax, eax
je 0x4db66e
mov eax, dword [esi + 0x450]
test eax, eax
je 0x4db5e4
xor edx, edx
mov ecx, esi
call fcn.0048aaf0
mov ecx, dword [str.151_rejected_n]
mov eax, dword [0x575b88]
mov edx, dword [0x575b84]
mov dword [0x599fd8], ecx
mov cx, word [0x575b8c]
mov dword [0x599fe0], eax
mov eax, 0x599fd8
mov dword [0x599fdc], edx
mov word [0x599fe4], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db5d8
jmp 0x4db037
mov eax, dword [0x589b1c]
mov dword [esi + 0x4b0], eax
mov dword [0x589b1c], 0xffffffff
mov ecx, dword [esi + 0x4b0]
call fcn.0053e860
mov eax, dword [0x589b78]
test eax, eax
je 0x4db646
mov eax, dword [0x59bfa4]
cmp eax, 1
jne 0x4db624
mov ecx, dword [0x589b7c]
call fcn.0041c8b0
jmp 0x4db646
cmp eax, 2
jne 0x4db646
mov ecx, dword [esp + 0x10]
push ecx
xor edx, edx
mov ecx, 4
call fcn.00473bf0
mov edx, 1
mov ecx, eax
call fcn.00517a40
mov edx, dword [0x5a1b00]
push 0
push 0
push 0x8010
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 1
call fcn.004da9a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, esi
call fcn.0048aaf0
mov eax, dword [str.150_unavailable_n]
mov ecx, dword [0x57a8f8]
mov edx, dword [0x57a8fc]
mov dword [0x599fd8], eax
mov eax, dword [0x57a900]
mov dword [0x599fdc], ecx
mov cl, byte [0x57a904]
mov dword [0x599fe4], eax
mov eax, 0x599fd8
mov dword [0x599fe0], edx
mov byte [0x599fe8], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db6b7
jmp 0x4db037
test esi, esi
je case.0x4daeb5.101
cmp byte [esi], 0
je case.0x4daeb5.101
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004dacf0
mov eax, dword [0x5981d0]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
je 0x4db76c
push 0x59a0e0
push edi
push str._s_id__s
push 0x599bf0
call ebp
push 0x599bf0
call fcn.00572bde
add esp, 0x14
push 0
push 0
mov edx, 0x574d0c
mov ecx, 0x599bf0
call fcn.004ab290
test eax, eax
je 0x4db76c
mov eax, dword [str.151_rejected_n]
mov edx, dword [0x575b88]
mov ecx, dword [0x575b84]
mov dword [0x599fd8], eax
mov ax, word [0x575b8c]
mov word [0x599fe4], ax
mov eax, 0x599fd8
mov dword [0x599fe0], edx
mov dword [0x599fdc], ecx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db760
jmp 0x4db2ad
mov ecx, 0x599bf0
sub ecx, esi
mov al, byte [esi]
mov byte [esi + ecx], al
inc esi
test al, al
jne 0x4db773
push 0x5902c8
push 0x5901c8
push 0x5900c8
push 0x5900c0
push 0x599bf0
call fcn.00563b42
push 0x5902c8
push 0x5901c8
push 0x574904
push 0x599bf0
call ebp
add esp, 0x24
mov ecx, 0x599bf0
call fcn.0041ed60
test eax, eax
jne 0x4db9b4
mov edi, dword [0x592640]
test edi, edi
je 0x4db9b4
mov esi, 3
lea esp, [esp]
mov eax, dword [edi + 0x540]
test eax, eax
je 0x4db80a
cmp dword [edi + 0x520], esi
jne 0x4db80a
lea edx, [edi + 0x4b8]
push 0x59a0e0
push edx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x4db819
mov edi, dword [edi + 0x88c]
test edi, edi
jne 0x4db7e0
jmp 0x4db9b4
push 0x599bf0
lea ebx, [edi + 0x648]
push ebx
push 0x57a8ec
push 0x59b078
call ebp
add esp, 0x10
mov edx, 1
mov ecx, 0x59b078
call fcn.0041ef30
test eax, eax
je 0x4db9b4
mov esi, dword [0x59e068]
test esi, esi
mov dword [esp + 0x10], 0
je 0x4db88f
lea ebp, [edi + 0x4b8]
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x4db885
lea eax, [esi + 0xcc]
push ebp
push eax
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x4db885
inc dword [esp + 0x10]
mov esi, dword [esi + 0x3cc]
test esi, esi
jne 0x4db863
mov ecx, dword [esp + 0x10]
cmp ecx, dword [edi + 0x868]
jge 0x4db9b4
call fcn.0050d1f0
test eax, eax
jne 0x4db9b4
mov ecx, dword [edi + 0x888]
call fcn.004dbea0
test eax, eax
je 0x4db9b4
call fcn.0050cfd0
mov esi, eax
test esi, esi
je 0x4db9b4
lea edx, [edi + 0x3f0]
push edx
lea ecx, [esi + 4]
mov edx, 0x64
call fcn.0041e120
lea eax, [edi + 0x4b8]
push eax
lea ecx, [esi + 0xcc]
mov edx, 0x64
call fcn.0041e120
lea ecx, [edi + 0x454]
push ecx
lea ecx, [esi + 0x68]
mov edx, 0x64
call fcn.0041e120
lea ebp, [esi + 0x130]
push ebx
mov edx, 0x104
mov ecx, ebp
call fcn.0041e120
lea ebx, [esi + 0x234]
push 0x599bf0
mov edx, 0x104
mov ecx, ebx
call fcn.0041e120
mov ecx, ebp
call fcn.0041f4e0
mov dx, word [0x589b14]
mov eax, 1
push ebx
mov dword [esi + 0x374], eax
mov dword [esi + 0x3ac], eax
mov dword [esi + 0x33c], eax
mov eax, dword [esp + 0x18]
push ebp
mov word [esi + 0x354], dx
mov dword [esi + 0x378], 3
mov dword [esi + 0x37c], eax
mov ecx, dword [edi + 0x888]
push 0x574904
push 0x599bf0
mov dword [esi + 0x3c8], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2c]
push edx
push 0x599bf0
call fcn.00572efe
add esp, 0x18
test eax, eax
je 0x4dba00
xor edx, edx
mov ecx, esi
call fcn.0050d9a0
mov eax, dword [str.150_unavailable_n]
mov ecx, dword [0x57a8f8]
mov edx, dword [0x57a8fc]
mov dword [0x599fd8], eax
mov eax, dword [0x57a900]
mov dword [0x599fdc], ecx
mov cl, byte [0x57a904]
mov dword [0x599fe4], eax
mov eax, 0x599fd8
mov dword [0x599fe0], edx
mov byte [0x599fe8], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4db9f4
jmp 0x4db037
mov eax, dword [esp + 0x30]
mov dword [esi + 0x364], eax
mov ecx, dword [0x589b1c]
mov dword [esi + 0x3c4], ecx
mov dword [0x589b1c], 0xffffffff
mov ecx, dword [esi + 0x3c4]
call fcn.0053e860
mov edx, dword [esi + 0x364]
mov eax, dword [edi + 0x888]
push edx
add eax, 0xdfc
push eax
push str.131__s__lu_n
push 0x599bf0
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x599bf0
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dba60
mov ecx, dword [esi + 0x3c4]
push 0
sub eax, edx
push eax
push 0x599bf0
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov edx, dword [0x5a1b00]
mov eax, dword [esi + 0x3c4]
push 0x21
push 0x8014
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov ecx, 1
call fcn.004da9a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret