Function at 0x100bdb0
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 0x100be12
push esi
push 0x54f
push 0x100353c
push 0x3db
push 0x10032f8
call fcn.0100a7b1
xor eax, eax
jmp 0x100c0c2
cmp ecx, ebx
jne 0x100be28
push esi
push 0x54f
push 0x1003534
push 0x3dc
jmp 0x100be01
cmp edx, ebx
jne 0x100be3e
push esi
push 0x54f
push 0x100352c
push 0x3dd
jmp 0x100be01
push edi
lea ecx, [ebp - 0x998]
push ecx
mov edi, 0x7fffffff
push edi
push eax
mov dword [ebp - 0x998], ebx
call fcn.0100b6ae
test eax, eax
je 0x100be6e
push esi
push 0x54f
push 0x1003524
push 0x3e2
jmp 0x100bea6
mov esi, dword [ebp - 0x998]
lea eax, [ebp - 0x998]
push eax
push edi
push dword [ebp - 0x9a8]
mov dword [ebp - 0x998], ebx
call fcn.0100b6ae
test eax, eax
je 0x100beb5
push dword [ebp - 0x99c]
push 0x54f
push 0x1003518
push 0x3e8
push 0x10032f8
call fcn.0100a7b1
jmp 0x100bfdb
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 0x100bf0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bfb5
test dword [eax + 0x1c], 0x800
je 0x100bfb5
push esi
push 0x1003218
push 0x23
jmp 0x100bfaa
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 0x100bf75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bf5e
test dword [eax + 0x1c], 0x800
je 0x100bf5e
push esi
push 0x1003218
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100bfd4
push dword [ebp - 0x9a8]
push 0x4033c3af
jmp 0x100bfca
lea eax, [ebp - 0x994]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
cmp esi, ebx
je 0x100bfe2
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bfb5
test dword [eax + 0x1c], 0x800
je 0x100bfb5
push esi
push 0x1003218
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100bfd4
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 0x100c0c1
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 0x100c096
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c068
test dword [eax + 0x1c], 0x800
je 0x100c068
push esi
push 0x1003218
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c087
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 0x100c0b2
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.0100a071
leave
ret 0x10