Function at 0x484880
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x3f8
push ebp
push esi
mov esi, edx
test esi, esi
mov ebp, ecx
jne 0x4848bc
mov esi, dword [0x5974d8]
test esi, esi
je 0x4848b1
lea ebx, [ebx]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4848bc
mov esi, dword [esi + 0x80]
test esi, esi
jne 0x4848a0
pop esi
xor eax, eax
pop ebp
add esp, 0x3f8
ret
cmp byte [ebp], 0
push edi
je 0x484b42
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
push ebp
call edi
cmp eax, 0xffffffff
je 0x484b42
mov dword [esi + 0x6c], 1
mov dword [esi + 0x74], 0xb4
xor ecx, ecx
mov cx, word [0x589a30]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
push ebp
mov word [esp + 0x12], ax
call edi
mov dx, word [0x589910]
mov cx, word [0x58990c]
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
call fcn.004fd380
cmp eax, 0xffffffff
mov dword [esi + 0x7c], eax
jne 0x484944
push 2
jmp 0x484b44
mov ecx, eax
call fcn.0053e860
mov edx, dword [0x5a1b00]
mov eax, dword [esi + 0x7c]
push 0x10
push 0x8031
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edx, dword [esi + 0x7c]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x484b33
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x484b33
mov eax, dword [0x5974d8]
xor ebp, ebp
cmp eax, ebp
push ebx
mov ebx, dword [esi + 0x70]
je 0x484b26
cmp esi, eax
je 0x4849bb
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x4849a0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3f8
ret
mov edx, 0x3e7
lea ecx, [esp + 0x20]
call fcn.0041e210
lea edx, [esp + 0x20]
mov ecx, 0xa8f
call fcn.0041c9e0
mov edi, dword [0x59a15c]
cmp edi, ebp
je 0x484a26
cmp dword [edi + 8], ebx
jne 0x4849f1
mov ecx, edi
call fcn.004dc0f0
test eax, eax
je 0x4849fd
mov edi, dword [edi + 0x22dc]
cmp edi, ebp
jne 0x4849e1
jmp 0x484a26
lea eax, [esp + 0x20]
lea ebp, [edi + 0x444]
push eax
mov edx, 0x3e7
mov ecx, ebp
call fcn.0041e120
mov ecx, edi
call fcn.0053e0b0
mov edx, edi
mov ecx, ebp
call fcn.0053df20
xor ebp, ebp
push 2
lea ecx, [esp + 0x24]
push 0x576f18
push ecx
call fcn.00572b89
add esp, 0xc
test eax, eax
jne 0x484a62
lea eax, [esp + 0x22]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x484a45
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x26]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.005641d0
add esp, 0xc
mov dl, 0x20
lea ecx, [esp + 0x20]
call fcn.005190f0
mov ecx, dword [0x592640]
cmp ecx, ebp
je 0x484a89
cmp dword [ecx + 0x52c], ebx
je 0x484ac4
mov ecx, dword [ecx + 0x88c]
cmp ecx, ebp
jne 0x484a77
mov ecx, dword [0x59e068]
cmp ecx, ebp
je 0x484aa5
cmp dword [ecx + 0x340], ebx
je 0x484ad5
mov ecx, dword [ecx + 0x3cc]
cmp ecx, ebp
jne 0x484a93
mov ecx, dword [0x597650]
cmp ecx, ebp
je 0x484afb
nop
cmp dword [ecx + 0x444], ebx
je 0x484ae9
mov ecx, dword [ecx + 0x4bc]
cmp ecx, ebp
jne 0x484ab0
jmp 0x484afb
lea edx, [esp + 0x20]
mov dword [ecx + 0x52c], ebp
call fcn.0042b4a0
jmp 0x484afb
lea edx, [esp + 0x20]
push edx
xor edx, edx
mov dword [ecx + 0x340], ebp
call fcn.0050e340
jmp 0x484afb
lea eax, [esp + 0x20]
push eax
xor edx, edx
mov dword [ecx + 0x444], ebp
call fcn.0048b250
mov eax, dword [0x5974d8]
cmp eax, ebp
je 0x484b26
cmp esi, eax
je 0x484b1f
mov eax, dword [eax + 0x80]
cmp eax, ebp
jne 0x484b04
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3f8
ret
mov ecx, esi
call fcn.00484400
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3f8
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x3f8
ret
push 1
mov edx, dword [esi + 0x70]
mov ecx, esi
call fcn.00484520
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3f8
ret