Function at 0x100beb0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9cc
mov eax, dword [0x102b01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x9a0], eax
mov dword [ebp - 0x9a8], ecx
mov dword [ebp - 0x9ac], edx
mov dword [ebp - 0x99c], esi
cmp eax, ebx
jne 0x100bf12
push esi
push 0x54f
push 0x1003564
push 0x3db
push 0x1003310
call fcn.0100a8b1
xor eax, eax
jmp 0x100c1c2
cmp ecx, ebx
jne 0x100bf28
push esi
push 0x54f
push 0x100355c
push 0x3dc
jmp 0x100bf01
cmp edx, ebx
jne 0x100bf3e
push esi
push 0x54f
push 0x1003554
push 0x3dd
jmp 0x100bf01
push edi
lea ecx, [ebp - 0x998]
push ecx
mov edi, 0x7fffffff
push edi
push eax
mov dword [ebp - 0x998], ebx
call fcn.0100b7ae
test eax, eax
je 0x100bf6e
push esi
push 0x54f
push 0x100354c
push 0x3e2
jmp 0x100bfa6
mov esi, dword [ebp - 0x998]
lea eax, [ebp - 0x998]
push eax
push edi
push dword [ebp - 0x9a8]
mov dword [ebp - 0x998], ebx
call fcn.0100b7ae
test eax, eax
je 0x100bfb5
push dword [ebp - 0x99c]
push 0x54f
push 0x1003540
push 0x3e8
push 0x1003310
call fcn.0100a8b1
jmp 0x100c0db
push ebx
push ebx
mov edi, 0x400
push edi
lea eax, [ebp - 0x404]
push eax
inc esi
push esi
push dword [ebp - 0x9a0]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 3
call esi
test eax, eax
jne 0x100c00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c0b5
test dword [eax + 0x1c], 0x800
je 0x100c0b5
push esi
push 0x1003230
push 0x23
jmp 0x100c0aa
push ebx
push ebx
push edi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x998]
inc eax
push eax
push dword [ebp - 0x9a8]
push ebx
push 3
call esi
test eax, eax
jne 0x100c075
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c05e
test dword [eax + 0x1c], 0x800
je 0x100c05e
push esi
push 0x1003230
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c0d4
push dword [ebp - 0x9a8]
push 0x4033c3af
jmp 0x100c0ca
lea eax, [ebp - 0x994]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
cmp esi, ebx
je 0x100c0e2
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c0b5
test dword [eax + 0x1c], 0x800
je 0x100c0b5
push esi
push 0x1003230
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c0d4
push dword [ebp - 0x9a0]
push 0x4033c3b0
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100c1c1
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x9cc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x9cc]
push eax
lea eax, [ebp - 0x804]
push eax
xor edi, edi
lea eax, [ebp - 0x404]
inc edi
push eax
mov dword [ebp - 0x9a4], ebx
mov dword [ebp - 0x9c8], ebx
mov dword [ebp - 0x9c4], edi
mov dword [ebp - 0x9c0], 6
mov dword [ebp - 0x9cc], 4
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
cmp esi, ebx
je 0x100c196
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c168
test dword [eax + 0x1c], 0x800
je 0x100c168
push esi
push 0x1003230
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c187
push dword [ebp - 0x9a0]
mov ecx, dword [eax]
push 0x4033c3b0
push esi
push eax
call dword [ecx + 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x9a4]
jmp 0x100c1b2
mov esi, dword [ebp - 0x9a4]
push dword [esi + 0x10]
push dword [esi + 0x18]
push dword [ebp - 0x9ac]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, edi
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a16f
leave
ret 0x10