Function at 0x10010c40
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x10079100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84], 0
push 0x20
push 0
lea eax, [ebp - 0xc4]
push eax
call fcn.100434d0
add esp, 0xc
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xb8], 0
mov ecx, dword [ebp + 0xc]
call fcn.100315c0
movzx ecx, al
test ecx, ecx
jne 0x10010cb7
mov ecx, dword [ebp + 0xc]
call fcn.1002daa0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 4
jmp 0x10010ce6
mov ecx, dword [ebp + 8]
call fcn.100315c0
movzx edx, al
test edx, edx
jne 0x10010cd4
mov ecx, dword [ebp + 8]
call fcn.1002daa0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.1003b570
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x1c]
call fcn.1002daa0
push eax
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10010d43
mov dword [ebp - 0x90], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001ae90
lea ecx, [ebp + 0x24]
call fcn.1001af50
mov eax, dword [ebp - 0x90]
jmp 0x10010efc
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.100165d0
push eax
lea ecx, [ebp - 0x44]
call fcn.10003ea0
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x74]
call fcn.1001a160
lea ecx, [ebp - 0x44]
call fcn.1001af50
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
jmp 0x10010d86
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0
je 0x10010ed4
push 0x81
push 0
push 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x10010ddb
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x10010de3
jmp 0x10010d7d
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10010e0c
mov dword [ebp - 0x94], 1
push 4
lea ecx, [ebp - 0x94]
push ecx
push 1
push 6
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 4], 0x17
jne 0x10010e56
movzx ecx, byte [ebp + 0x20]
test ecx, ecx
je 0x10010e29
mov dword [ebp - 0x8c], 1
jmp 0x10010e33
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x98], edx
push 4
lea eax, [ebp - 0x98]
push eax
push 0x1b
push 0x29
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp + 0x24]
call fcn.1001cd50
movzx edx, al
test edx, edx
je 0x10010e71
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp + 0x24]
call fcn.1001f360
mov byte [ebp - 0x75], 0
lea ecx, [ebp - 0x75]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp + 0x4c]
call fcn.1001ecc0
movzx ecx, al
test ecx, ecx
je 0x10010eb9
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x9c], edx
lea ecx, [ebp - 0x74]
call fcn.1001bed0
lea ecx, [ebp - 0x1c]
call fcn.1001ae90
lea ecx, [ebp + 0x24]
call fcn.1001af50
mov eax, dword [ebp - 0x9c]
jmp 0x10010efc
mov eax, dword [ebp - 0x80]
push eax
call fcn.1002e200
add esp, 4
movzx ecx, byte [ebp - 0x75]
test ecx, ecx
je 0x10010ecf
jmp 0x10010ed4
jmp 0x10010d7d
mov dword [ebp - 0xa0], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.1001bed0
lea ecx, [ebp - 0x1c]
call fcn.1001ae90
lea ecx, [ebp + 0x24]
call fcn.1001af50
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040910
mov esp, ebp
pop ebp
ret