Function at 0x40abc0
Capabilities:
Access peb ldr_data
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45933e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x47617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov edi, dword [esi + 0x68]
cmp edi, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], bl
je 0x40ac15
mov ecx, edi
call fcn.0042c9ed
push edi
call fcn.0041fdb1
add esp, 4
mov dword [esi + 0x68], ebx
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x40ac27
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40ac47
mov dword [eax + 4], 0xffffffff
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40ac44
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40ac5a
push eax
call fcn.0041fdb1
add esp, 4
mov dword [esi + 0x10], ebx
mov ebx, dword [ebp + 0xc]
push ebx
mov ecx, esi
call fcn.00405dd0
cmp eax, 1
jne 0x40ac74
mov edi, 0x45eaf8
mov byte [ebp - 0x14], al
jmp 0x40ac77
mov edi, dword [ebp + 0x10]
push 0x20
call fcn.0041fd86
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x40ac9b
mov eax, dword [ebp - 0x14]
push eax
push edi
push ebx
call fcn.00409be0
jmp 0x40ac9d
xor eax, eax
push 0x18
mov byte [ebp - 4], 0
mov dword [esi + 0x68], eax
call fcn.0041fd86
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40accf
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0x40
mov dword [eax + 0x14], edi
mov dword [eax], vtable.CDnsBuffer.0
jmp 0x40acd1
xor eax, eax
push 0xc
mov dword [esi + 8], eax
call fcn.0041fd86
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
cmp ecx, edi
mov byte [ebp - 4], 2
je 0x40acf2
call fcn.00406190
jmp 0x40acf4
xor eax, eax
push 0xc
mov byte [ebp - 4], 0
mov dword [esi + 4], eax
call fcn.0041fd86
add esp, 4
cmp eax, edi
je 0x40ad28
mov word [eax], 1
mov word [eax + 2], 0x100
mov word [eax + 4], 1
mov word [eax + 6], di
mov word [eax + 8], di
mov word [eax + 0xa], di
jmp 0x40ad2a
xor eax, eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
mov dword [esi + 0x10], eax
call fcn.004071d0
mov edi, dword [esi + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [edi + 0xc]
add eax, ebx
cmp eax, dword [edi + 8]
mov byte [ebp - 4], 3
mov dword [ebp + 0xc], edx
jle 0x40ad5e
push eax
mov ecx, edi
call fcn.00405d70
test eax, eax
je 0x40ad75
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
add edx, dword [edi + 0xc]
push ebx
push ecx
push edx
call fcn.0043f3d0
add esp, 0xc
add dword [edi + 0xc], ebx
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], vtable.CDnsBuffer.0
je 0x40ad92
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041fdb1
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [esi + 0x68]
call fcn.004078a0
mov edi, dword [esi + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [edi + 0xc]
add eax, ebx
cmp eax, dword [edi + 8]
mov byte [ebp - 4], 4
mov dword [ebp + 0xc], edx
jle 0x40adc4
push eax
mov ecx, edi
call fcn.00405d70
test eax, eax
je 0x40addb
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
add edx, dword [edi + 0xc]
push ebx
push ecx
push edx
call fcn.0043f3d0
add esp, 0xc
add dword [edi + 0xc], ebx
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], vtable.CDnsBuffer.0
je 0x40adf8
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041fdb1
add esp, 4
mov ecx, dword [ebp + 8]
push 0x35
push ecx
mov ecx, dword [esi + 4]
call fcn.00408f20
mov edx, dword [ebp + 0x14]
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1006
mov dword [ebp + 0xc], edx
mov ecx, dword [edi + 4]
push 0xffff
push ecx
call ebx
mov eax, dword [edi + 4]
push 4
lea edx, [ebp + 0xc]
push edx
push 0x1005
push 0xffff
push eax
call ebx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push 0x35
push edx
push ecx
mov ecx, dword [esi + 4]
push eax
call fcn.00409020
mov edi, dword [esi + 8]
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x40ae70
mov eax, dword [edi + 4]
push eax
call fcn.0041fdb1
add esp, 4
push 0x800
mov ecx, edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0x40
mov dword [edi + 0x14], ebx
call fcn.00405d70
mov dword [edi + 0xc], 0x800
mov edi, dword [edi + 4]
mov ecx, dword [esi + 4]
push 0x800
push edi
call fcn.00405b40
cmp eax, ebx
mov ecx, dword [esi + 4]
mov dword [ecx + 4], 0xffffffff
jl 0x40af82
mov eax, dword [esi + 8]
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
push eax
call fcn.0040a6f0
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x68]
call fcn.0040a9a0
mov edx, dword [esi + 0x68]
movzx eax, word [edx + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], eax
movzx edx, word [ecx + 6]
push edx
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.0040aa60
mov ecx, dword [esi + 0x10]
movzx edx, word [ecx + 8]
push edx
lea eax, [esi + 0x30]
push eax
mov ecx, esi
call fcn.0040aa60
mov ecx, dword [esi + 0x10]
movzx edx, word [ecx + 0xa]
push edx
lea eax, [esi + 0x4c]
push eax
mov ecx, esi
call fcn.0040aa60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10