Function at 0x480dbf
Capabilities:
Connect socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x18], edx
inc eax
push edi
cmp dword [esi + 0x34], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x481198
push 7
pop ecx
lea ebx, [esi + 0x40]
xor eax, eax
mov edi, ebx
push 0x38
rep stosd dword es:[edi], eax
push edx
lea eax, [esi + 0x5c]
push eax
call fcn.005bb370
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x18], 0x17
push 0x10
pop edi
test ecx, ecx
je 0x480e4c
movzx edx, word [ecx]
xor eax, eax
inc eax
cmp dx, ax
jne 0x480e34
mov word [ebx], ax
jmp 0x480e4c
cmp dx, word [esp + 0x18]
mov eax, edi
push 0x1c
pop edx
cmove eax, edx
push eax
push ecx
mov ecx, ebx
call section..text
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x1e8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1dc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1cc], eax
xor eax, eax
push 0x39f
push 0x73d5e4
inc eax
push eax
push dword [esi + 0x200]
push dword [esi + 0x1f8]
call fcn.005ed970
add esp, 0x14
test eax, eax
jne 0x480ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x39f
push esi
push edi
mov edx, 0x73d604
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x73d624
push 0x73d644
jmp 0x4811d4
movzx edx, word [ebx]
xor ecx, ecx
inc ecx
mov dword [esi + 0x1f8], eax
mov eax, dword [esi + 0x200]
mov dword [esi + 0x1fc], eax
cmp dx, cx
je 0x480fbd
push 7
xor eax, eax
lea edi, [esp + 0x24]
pop ecx
rep stosd dword es:[edi], eax
movzx eax, word [esi + 0x94]
test ax, ax
jne 0x480f03
mov eax, dword [esp + 0x10]
mov ax, word [eax]
mov word [esp + 0x20], ax
lea ecx, [esp + 0x20]
cmp ax, 2
jne 0x480f63
cmp word [esp + 0x22], 0
je 0x480fb8
mov edi, 0x3ba
push edi
push 0x73d668
push 0x73d688
call fcn.00401109
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edx, 0x73d6a0
push esi
push edi
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x73d6c0
push 0x73d6e0
jmp 0x4811d4
push 0x17
pop edi
cmp ax, di
jne 0x480fb8
cmp word [esp + 0x22], 0
je 0x480fb8
mov edi, 0x3bb
push edi
push 0x73d704
push 0x73d724
call fcn.00401109
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edx, 0x73d73c
push esi
push edi
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x73d75c
push 0x73d77c
jmp 0x4811d4
push 0x10
pop edi
jmp 0x480fc1
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
cmp dx, ax
je 0x481060
xor eax, eax
cmp word [ecx], ax
je 0x48104c
push 6
lea edx, [eax + 1]
call fcn.00489940
pop ecx
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x1ec], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1f4], eax
inc eax
cmp word [ebx], ax
je 0x4810aa
push 4
lea eax, [esp + 0x18]
push eax
push 8
push 0xffff
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4810aa
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3da
mov edx, 0x73d824
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push 0xfd
jmp 0x4811dd
or dword [esi + 0x34], 0xffffffff
push eax
push 0x3c6
push 0x73d7a0
jmp 0x481168
xor ecx, ecx
push 0
inc ecx
push ecx
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
test eax, eax
jns 0x480fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edi, 0x3cc
push esi
push edi
mov edx, 0x73d7c0
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x73d7e0
push 0x73d800
jmp 0x4811d4
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esi + 0x94]
movzx ecx, word [eax]
test cx, cx
je 0x4810fe
xor edx, edx
inc edx
cmp word [ebx], dx
je 0x4810fe
push 0x17
pop edx
push 0x1c
cmp cx, dx
pop ecx
cmove edi, ecx
push edi
push eax
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x481135
xor eax, eax
push eax
push 0x3ed
push 0x73d844
jmp 0x481168
xor eax, eax
inc eax
cmp word [ebx], ax
je 0x48115b
mov eax, dword [esp + 0x10]
push 0x17
pop ecx
push 0x1c
cmp word [eax], cx
pop ecx
cmove edi, ecx
push edi
push eax
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x481135
xor eax, eax
push eax
push 0x3f9
push 0x73d864
jmp 0x481168
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x481151
xor eax, eax
push eax
push 0x41a
push 0x73d8a4
jmp 0x481168
mov ecx, dword [esi + 0x10]
call fcn.0048549f
jmp 0x481186
xor eax, eax
push eax
push 0x405
push 0x73d884
mov ecx, dword [esi + 0x1d8]
mov edx, esi
or dword [esi + 0x1ec], 0xffffffff
push eax
push fcn.00480cb9
push eax
call fcn.0048a8a3
add esp, 0x18
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b8900
mov esp, ebp
pop ebp
ret
mov edi, 0x380
push edi
push 0x73d548
push 0x73d568
call fcn.00401109
add esp, 0xc
mov edx, 0x73d580
xor ecx, ecx
push dword [esi + 0x34]
mov esi, 0xfd
push esi
push edi
call fcn.0048cac3
add esp, 0xc
push edi
push 0x73d5a0
push str.CRITICALEXIT2__FILE:__s__LINE:__d_r_n
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3