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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x6d9d44]
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 0x483a08
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.005c37d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x18], 0x17
push 0x10
pop edi
test ecx, ecx
je 0x4836bc
movzx edx, word [ecx]
xor eax, eax
inc eax
cmp dx, ax
jne 0x4836a4
mov word [ebx], ax
jmp 0x4836bc
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 0x755b54
inc eax
push eax
push dword [esi + 0x200]
push dword [esi + 0x1f8]
call fcn.005f5d50
add esp, 0x14
test eax, eax
jne 0x483734
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x39f
push esi
push edi
mov edx, 0x755b74
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x755b94
push 0x755bb4
jmp 0x483a44
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 0x48382d
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 0x483773
mov eax, dword [esp + 0x10]
mov ax, word [eax]
mov word [esp + 0x20], ax
lea ecx, [esp + 0x20]
cmp ax, 2
jne 0x4837d3
cmp word [esp + 0x22], 0
je 0x483828
mov edi, 0x3ba
push edi
push 0x755bd8
push 0x755bf8
call fcn.00401109
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edx, 0x755c10
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x755c30
push 0x755c50
jmp 0x483a44
push 0x17
pop edi
cmp ax, di
jne 0x483828
cmp word [esp + 0x22], 0
je 0x483828
mov edi, 0x3bb
push edi
push 0x755c74
push 0x755c94
call fcn.00401109
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edx, 0x755cac
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x755ccc
push 0x755cec
jmp 0x483a44
push 0x10
pop edi
jmp 0x483831
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc eax
cmp dx, ax
je 0x4838d0
xor eax, eax
cmp word [ecx], ax
je 0x4838bc
push 6
lea edx, [eax + 1]
call fcn.0048c694
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 0x48391a
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 0x48391a
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3da
mov edx, 0x755d94
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push 0xfd
jmp 0x483a4d
or dword [esi + 0x34], 0xffffffff
push eax
push 0x3c6
push 0x755d10
jmp 0x4839d8
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 0x483852
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfd
mov edi, 0x3cc
push esi
push edi
mov edx, 0x755d30
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x755d50
push 0x755d70
jmp 0x483a44
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 0x48396e
xor edx, edx
inc edx
cmp word [ebx], dx
je 0x48396e
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 0x4839a5
xor eax, eax
push eax
push 0x3ed
push 0x755db4
jmp 0x4839d8
xor eax, eax
inc eax
cmp word [ebx], ax
je 0x4839cb
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 0x4839a5
xor eax, eax
push eax
push 0x3f9
push 0x755dd4
jmp 0x4839d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x4839c1
xor eax, eax
push eax
push 0x41a
push 0x755e14
jmp 0x4839d8
mov ecx, dword [esi + 0x10]
call fcn.00488135
jmp 0x4839f6
xor eax, eax
push eax
push 0x405
push 0x755df4
mov ecx, dword [esi + 0x1d8]
mov edx, esi
or dword [esi + 0x1ec], 0xffffffff
push eax
push fcn.00483508
push eax
call fcn.0048d655
add esp, 0x18
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c0db0
mov esp, ebp
pop ebp
ret
mov edi, 0x380
push edi
push 0x755ab8
push 0x755ad8
call fcn.00401109
add esp, 0xc
mov edx, 0x755af0
xor ecx, ecx
push dword [esi + 0x34]
mov esi, 0xfd
push esi
push edi
call fcn.0048f95e
add esp, 0xc
push edi
push 0x755b10
push str.CRITICALEXIT2__FILE:__s__LINE:__d_r_n
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3