Function at 0x4882b0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x542358
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
movsx eax, word [esi + 0x2190]
dec eax
je 0x4884d8
dec eax
je 0x488381
dec eax
jne 0x4889b7
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [eax + 0x2c]
cmp ecx, edx
jne 0x48836e
cmp word [eax + 0x30], 8
jne 0x48836e
call edi
mov edx, dword [esi + 8]
mov dword [esi + 0x18], eax
mov dword [edx + 0xc], 0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x30]
shr ecx, 0x10
jne 0x4884c1
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x40], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x488365
mov dword [esi + 0x2c], 0
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov word [esi + 0x2190], 2
mov edx, dword [esi + 0x14]
cmp dword [edx], 0
je 0x4889b7
call edi
jmp 0x4889a5
mov eax, dword [esi + 0x50]
cmp eax, 2
jne 0x488394
push esi
call fcn.00487fe0
add esp, 4
jmp 0x4883a8
cmp eax, 3
jne 0x4883a4
push esi
call fcn.004881f0
add esp, 4
jmp 0x4883a8
mov eax, dword [esp + 0x30]
lea ecx, [eax - 1]
cmp ecx, 8
ja case.0x4883b8.2
xor edx, edx
mov dl, byte [ecx + 0x4889d4]
jmp dword [edx*4 + 0x4889cc]
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x4889b7
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ecx, dword [esi + 0x18]
mov edi, eax
sub edi, ecx
mov ecx, dword [esi + 0x50]
cmp ecx, 2
jne 0x48845b
cmp dword [esp + 0x34], 1
jne 0x48845b
mov eax, dword [esi + 0x64]
test eax, eax
je 0x488403
cmp edi, 0x4e20
jb 0x48845b
call fcn.0042eff0
mov ecx, dword [esi + 0x2c]
push ecx
jmp 0x488437
cmp edi, 0x2710
jb 0x48845b
mov eax, dword [esi + 0x21a8]
test eax, eax
je 0x488426
cmp dword [eax + 0xc], 1
jl 0x488426
call fcn.0042eff0
mov edx, dword [esi + 0x2c]
push edx
jmp 0x488437
cmp edi, 0x4e20
jb 0x48845b
call fcn.0042eff0
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x2c], 0
mov eax, 6
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
cmp edi, dword [esi + 0x1c]
jbe 0x4889b7
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x48848c
cmp ecx, 2
jne 0x48848c
call ebp
mov dword [esi + 0x18], eax
mov eax, 0xd
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov ecx, dword [esi + 0x10]
call fcn.0041fd30
test eax, eax
je 0x4884a5
mov ecx, dword [esi + 0x1c]
shl ecx, 1
cmp edi, ecx
jbe 0x4889b7
push edi
mov ecx, dword [esi + 0x10]
push 0
push 0
call fcn.00420370
mov ecx, dword [esi + 8]
push 2
push 0xef22
call fcn.0047dac0
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov ax, word [esi + 0x2192]
test ax, ax
jne 0x48865c
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
mov edx, dword [eax + 0x2c]
cmp edx, ecx
jne 0x488997
cmp word [eax + 0x30], 0x10
jne 0x488997
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
xor edi, edi
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + 0x30]
shr edx, 0x10
jne 0x4884c1
mov eax, dword [esi + 0x21a4]
cmp eax, edi
je 0x488855
mov cx, word [eax + 0x18]
cmp cx, 7
je 0x488548
cmp cx, 9
je 0x488548
cmp cx, 8
jne 0x488855
mov dword [esi + 0x2178], edi
mov word [esi + 0x2192], 1
mov cx, word [eax + 0x18]
cmp cx, 7
je 0x4885b6
cmp cx, 9
je 0x4885b0
push eax
mov eax, dword [esi + 0x4c]
push eax
push ecx
lea edx, [esi + 0x38]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0050d46b
mov eax, dword [esi + 8]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00480420
mov eax, dword [esp + 0x44]
add esp, 0x14
mov edx, dword [eax - 8]
push edi
push edx
push eax
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov dword [esi + 0x2198], edi
lea ecx, [esp + 0x30]
jmp 0x488992
cmp cx, 7
jne 0x4885e8
mov ecx, dword [esi + 0x10]
push edi
call fcn.0041f8d0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push ecx
mov ecx, dword [esi + 0x10]
call fcn.0041f280
mov edx, dword [esi + 0x21a4]
lea edi, [esi + 0x1074]
push edx
push edi
call fcn.004825c0
add esp, 0x14
jmp 0x488612
mov eax, dword [esi + 0x4c]
lea edx, [esi + 0x38]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0050d46b
mov eax, dword [esi + 0x21a4]
lea edi, [esi + 0x1074]
push eax
push edi
call fcn.00482380
add esp, 0x10
mov ecx, dword [esi + 0x2c]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WSOCK32.dll_send]
movsx edx, byte [esi + 0x1075]
movsx eax, byte [edi]
push edx
lea ebp, [esi + 0x113c]
push eax
push str.Socks:__02x__02x
push ebp
call fcn.004ed976
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
call fcn.0050d46b
mov ecx, dword [esi + 8]
call fcn.0047db40
jmp 0x488997
cmp ax, 1
je 0x48866c
cmp ax, 2
jne 0x488997
mov eax, dword [esi + 0x2178]
lea edi, [esi + 0x2178]
mov ecx, 0x1000
push 0
sub ecx, eax
lea edx, [eax + esi + 0x1074]
mov eax, dword [esi + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x4886be
cmp dword [edi], 0
jne 0x4886c7
cmp ebp, 0xffffffff
jne 0x4884c1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x488997
jmp 0x4884c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x21a4]
mov ax, word [ecx + 0x18]
cmp ax, 7
jne 0x488863
movsx edx, byte [esi + 0x1075]
movsx eax, byte [esi + 0x1074]
lea edi, [esi + 0x1074]
push edx
lea ebp, [esi + 0x113c]
push eax
push str.Socks:__02x__02x
push ebp
call fcn.004ed976
add esp, 0x10
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
call fcn.0050d46b
mov ecx, dword [esi + 8]
call fcn.0047db40
cmp word [esi + 0x2192], 1
mov al, byte [edi]
jne 0x48883f
cmp al, 5
jne 0x48873a
mov cl, byte [esi + 0x1075]
test cl, cl
je 0x488748
cmp al, 1
jne 0x4887bb
mov cl, byte [esi + 0x1075]
test cl, cl
jne 0x4887bb
mov ecx, dword [esi + 0x4c]
push 2
push ecx
push ecx
lea edx, [esi + 0x38]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov word [esi + 0x2192], 2
call fcn.0050d46b
mov eax, dword [esi + 0x21a4]
push eax
push edi
call fcn.004825c0
mov ecx, dword [esi + 0x2c]
add esp, 0x14
push 0
push eax
push edi
push ecx
call dword [sym.imp.WSOCK32.dll_send]
movsx edx, byte [esi + 0x1075]
movsx eax, byte [edi]
push edx
push eax
push str.Socks:__02x__02x
push ebp
call fcn.004ed976
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
call fcn.0050d46b
mov ecx, dword [esi + 8]
call fcn.0047db40
jmp 0x488997
cmp al, 5
jne 0x4884c1
cmp byte [esi + 0x1075], 2
jne 0x4884c1
mov ecx, dword [esi + 0x10]
push 1
call fcn.0041f8d0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push ecx
mov ecx, dword [esi + 0x10]
call fcn.0041f280
mov edx, dword [esi + 0x21a4]
push edx
push edi
call fcn.004825c0
add esp, 0x14
push 0
push eax
mov eax, dword [esi + 0x2c]
push edi
push eax
call dword [sym.imp.WSOCK32.dll_send]
movsx ecx, byte [esi + 0x1075]
movsx edx, byte [edi]
push ecx
push edx
push str.Socks:__02x__02x
push ebp
call fcn.004ed976
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
call fcn.0050d46b
mov ecx, dword [esi + 8]
call fcn.0047db40
jmp 0x488997
cmp al, 5
jne 0x4884c1
mov al, byte [esi + 0x1075]
test al, al
jne 0x4884c1
mov word [esi + 0x2190], 2
jmp 0x488997
cmp ax, 9
jne 0x4888cd
movsx eax, byte [esi + 0x1075]
movsx ecx, byte [esi + 0x1074]
push eax
lea edi, [esi + 0x113c]
push ecx
push str.Socks:__02x__02x
push edi
call fcn.004ed976
add esp, 0x10
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.0050d46b
mov ecx, dword [esi + 8]
call fcn.0047db40
mov al, byte [esi + 0x1074]
test al, al
jne 0x4884c1
cmp byte [esi + 0x1075], 0x5a
jne 0x4884c1
mov word [esi + 0x2190], 2
jmp 0x488997
mov edx, dword [0x591288]
mov dword [esp + 0x30], edx
test ebp, ebp
mov dword [esp + 0x28], 0
jle 0x4888e5
add dword [edi], ebp
lea eax, [esp + 0x30]
lea ecx, [esi + 0x1074]
push eax
push edi
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0
call fcn.00481530
add esp, 0x10
test eax, eax
je 0x488986
mov eax, dword [esp + 0x30]
push 0x596660
push eax
call fcn.004ee0f0
add esp, 8
test eax, eax
je 0x48894b
mov edi, dword [esi + 0x2198]
push 3
push ecx
lea edx, [esp + 0x38]
inc edi
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esi + 0x2198], edi
call fcn.0050d172
mov ecx, dword [esi + 8]
call fcn.0047db40
jmp 0x488986
mov eax, dword [esi + 0x2198]
mov edi, 2
cmp eax, edi
jle 0x48897f
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0050d3fd
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov word [esi + 0x2190], di
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0050d3fd
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x4889b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
sub eax, edx
cmp eax, ecx
jbe 0x4889b7
push eax
jmp 0x4884a6
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x20
ret