Function at 0x100be49
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 0x100beab
push esi
push 0x54f
push 0x1003510
push 0x3da
push 0x10032f8
call fcn.0100a7c1
xor eax, eax
jmp 0x100c15b
cmp ecx, ebx
jne 0x100bec1
push esi
push 0x54f
push 0x1003508
push 0x3db
jmp 0x100be9a
cmp edx, ebx
jne 0x100bed7
push esi
push 0x54f
push 0x1003500
push 0x3dc
jmp 0x100be9a
push edi
lea ecx, [ebp - 0x998]
push ecx
mov edi, SysReAllocString
push edi
push eax
mov dword [ebp - 0x998], ebx
call fcn.0100b773
test eax, eax
je 0x100bf07
push esi
push 0x54f
push 0x10034f8
push 0x3e1
jmp 0x100bf3f
mov esi, dword [ebp - 0x998]
lea eax, [ebp - 0x998]
push eax
push edi
push dword [ebp - 0x9a8]
mov dword [ebp - 0x998], ebx
call fcn.0100b773
test eax, eax
je 0x100bf4e
push dword [ebp - 0x99c]
push 0x54f
push 0x10034f0
push 0x3e7
push 0x10032f8
call fcn.0100a7c1
jmp 0x100c074
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 0x100bfa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c04e
test dword [eax + 0x1c], 0x800
je 0x100c04e
push esi
push 0x1003218
push 0x23
jmp 0x100c043
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 0x100c00e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bff7
test dword [eax + 0x1c], 0x800
je 0x100bff7
push esi
push 0x1003218
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c06d
push dword [ebp - 0x9a8]
push 0x4033c3af
jmp 0x100c063
lea eax, [ebp - 0x994]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
cmp esi, ebx
je 0x100c07b
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c04e
test dword [eax + 0x1c], 0x800
je 0x100c04e
push esi
push 0x1003218
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c06d
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 0x100c15a
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 0x100c12f
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100c101
test dword [eax + 0x1c], 0x800
je 0x100c101
push esi
push 0x1003218
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
mov eax, dword [ebp - 0x99c]
cmp eax, ebx
je 0x100c120
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 0x100c14b
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.0100a07f
leave
ret 0x10