Function at 0x459ce0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aa74e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x28]
test al, al
jne 0x459ef0
mov di, word [ebp + 8]
test di, di
jbe 0x459ef0
cmp dword [esi + 0xc18], 0xffffffff
mov ebx, dword [ebp + 0x14]
jne 0x459d5f
mov ecx, dword [ebp + 0xc]
push ebx
push 1
push ecx
mov ecx, 0x4efeb1
call fcn.00462a00
cmp eax, 0xffffffff
mov dword [esi + 0xc18], eax
je 0x459ef0
push eax
mov ecx, 0x4efeb1
call fcn.00462d80
test ax, ax
je 0x459d5f
mov dword [ebp + 0xc], eax
cmp word [esi + 8], 0
jne 0x459e32
cmp word [esi + 0xa], di
jbe 0x459d74
mov word [esi + 0xa], di
mov word [esi + 8], di
movzx edi, di
mov edx, edi
imul edx, edx, 0xcb8
add edx, 4
push edx
call fcn.0049aa31
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0xbc], 0
je 0x459dc1
push 0x44fea0
push 0x44fe40
push edi
lea ebx, [eax + 4]
push 0xcb8
push ebx
mov dword [eax], edi
call fcn.0049b048
mov eax, ebx
jmp 0x459dc3
xor eax, eax
xor ebx, ebx
cmp word [esi + 8], bx
mov dword [esp + 0xbc], 0xffffffff
mov dword [esi + 0x33c], eax
jbe 0x459e24
xor edi, edi
mov edi, edi
mov eax, dword [esi + 0x33c]
mov byte [edi + eax], 0
fld qword [esi + 0xc30]
movzx ecx, word [esi + 0xc3a]
movzx edx, word [esi + 0xc38]
mov eax, dword [esi + 0x33c]
push ecx
push edx
sub esp, 8
lea ecx, [eax + edi + 0x10]
fstp qword [esp]
call fcn.0045b320
movzx ecx, word [esi + 8]
inc ebx
add edi, 0xcb8
cmp ebx, ecx
jb 0x459de0
lea ecx, [esi + 0x340]
call fcn.00452500
mov ebx, dword [ebp + 0x14]
mov al, byte [esi + 4]
test al, al
je 0x459f31
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [esi + 0x3dc]
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, esi
mov dword [esi + 0x7f0], edi
mov dword [esi + 0x7ec], edi
mov dword [esi + 0x7e8], edi
mov dword [esi + 0x7e4], edi
mov byte [esi + 0x364], 0
mov byte [esi + 4], 0
mov dword [esi + 0xc14], edx
call fcn.00452350
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4efeb1
call fcn.00462d00
cmp ebx, edi
mov cx, word [ebp + 0xc]
mov word [esi + 0x238], cx
je 0x459ea7
cmp byte [ebx], 0
je 0x459ea7
push ebx
jmp 0x459eac
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esi + 0x234], eax
mov al, byte [esi + 5]
test al, al
jne 0x459f31
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x459c40
push 0x200000
push edi
mov dword [esp + 0x24], edi
call fcn.0049b631
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x374], eax
jne 0x459f09
mov edx, dword [esi]
push edi
push edi
mov ecx, esi
call dword [edx + 0x24]
xor al, al
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 5]
test al, al
mov dword [esi + 0x374], edi
jne 0x459f31
lea ecx, [ecx]
push 0xa
call fcn.0045afd0
mov al, byte [esi + 5]
add esp, 4
test al, al
je 0x459f20
mov eax, dword [esi + 0x3bc]
xor edi, edi
test eax, eax
jbe 0x459f5a
lea ecx, [ecx]
mov eax, dword [esi + 0x3b8]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
push esi
call dword [edx + 8]
mov eax, dword [esi + 0x3bc]
inc edi
cmp edi, eax
jb 0x459f40
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10