Function at 0x459b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aa7de
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 0x459da0
mov di, word [ebp + 8]
test di, di
jbe 0x459da0
cmp dword [esi + 0xc18], 0xffffffff
mov ebx, dword [ebp + 0x14]
jne 0x459c0f
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 0x459da0
push eax
mov ecx, 0x4efeb1
call fcn.00462d80
test ax, ax
je 0x459c0f
mov dword [ebp + 0xc], eax
cmp word [esi + 8], 0
jne 0x459ce2
cmp word [esi + 0xa], di
jbe 0x459c24
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.0049aac1
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0xbc], 0
je 0x459c71
push 0x44fe10
push 0x44fdb0
push edi
lea ebx, [eax + 4]
push 0xcb8
push ebx
mov dword [eax], edi
call fcn.0049b0d8
mov eax, ebx
jmp 0x459c73
xor eax, eax
xor ebx, ebx
cmp word [esi + 8], bx
mov dword [esp + 0xbc], 0xffffffff
mov dword [esi + 0x33c], eax
jbe 0x459cd4
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.0045b1d0
movzx ecx, word [esi + 8]
inc ebx
add edi, 0xcb8
cmp ebx, ecx
jb 0x459c90
lea ecx, [esi + 0x340]
call fcn.0045c760
mov ebx, dword [ebp + 0x14]
mov al, byte [esi + 4]
test al, al
je 0x459de1
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.00452200
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 0x459d57
cmp byte [ebx], 0
je 0x459d57
push ebx
jmp 0x459d5c
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 0x459de1
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x459af0
push 0x200000
push edi
mov dword [esp + 0x24], edi
call fcn.0049b6c1
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x374], eax
jne 0x459db9
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 0x459de1
lea ecx, [ecx]
push 0xa
call fcn.0045ae80
mov al, byte [esi + 5]
add esp, 4
test al, al
je 0x459dd0
mov eax, dword [esi + 0x3bc]
xor edi, edi
test eax, eax
jbe 0x459e0a
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 0x459df0
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