Function at 0x100bb0c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x102b01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x9a4], edi
mov dword [ebp - 0x9a8], eax
cmp edi, esi
je 0x100be17
xor ecx, ecx
cmp cx, word [edi]
je 0x100be17
cmp eax, esi
jne 0x100bb67
push ebx
push 0x54f
push 0x10034e8
push 0x28f
jmp 0x100be27
lea eax, [ebp - 0x998]
push eax
push SysReAllocString
push edi
mov dword [ebp - 0x9a0], esi
mov dword [ebp - 0x998], esi
call fcn.0100b773
test eax, eax
je 0x100bb9e
push ebx
push 0x54f
push 0x10034e0
push 0x295
jmp 0x100be27
push esi
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x998]
inc eax
push eax
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100bc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bbf4
test dword [eax + 0x1c], 0x800
je 0x100bbf4
push esi
push 0x1003218
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
test ebx, ebx
je 0x100bc08
mov eax, dword [ebx]
push edi
push 0x4033c3b0
push esi
push ebx
call dword [eax + 0x1c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100be31
lea eax, [ebp - 0x994]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x99c], eax
test eax, eax
je 0x100bc7e
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bc5d
test dword [eax + 0x1c], 0x800
je 0x100bc5d
push dword [ebp - 0x99c]
push 0x1003218
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
test ebx, ebx
je 0x100bc76
mov eax, dword [ebx]
push edi
push 0x4033c3b0
push dword [ebp - 0x99c]
push ebx
call dword [eax + 0x1c]
add esp, 0x10
push dword [ebp - 0x99c]
jmp 0x100bc09
and dword [ebp - 0x99c], 0
and dword [ebp - 0x998], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c8]
rep stosd dword es:[edi], eax
and dword [ebp - 0x9c4], eax
lea eax, [ebp - 0x998]
push eax
lea eax, [ebp - 0x9c8]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x9c0], 1
mov dword [ebp - 0x9bc], 6
mov dword [ebp - 0x9c8], 4
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
je 0x100bd26
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bd08
test dword [eax + 0x1c], 0x800
je 0x100bd08
push edi
push 0x1003218
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
test ebx, ebx
je 0x100bd6b
push dword [ebp - 0x9a4]
push 0x4033c3b0
push edi
mov eax, dword [ebx]
push ebx
call dword [eax + 0x1c]
add esp, 0x10
jmp 0x100bde8
push 2
push 0
push 0
push esi
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x998]
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov edi, eax
test edi, edi
je 0x100bd73
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bd08
test dword [eax + 0x1c], 0x800
je 0x100bd08
push edi
push 0x1003218
push 0x1b
jmp 0x100bcfd
mov dword [ebp - 0x9a0], edi
jmp 0x100bde8
push esi
push dword [ebp - 0x9a8]
lea eax, [ebp - 0x404]
push esi
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100bdde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bdc0
test dword [eax + 0x1c], 0x800
je 0x100bdc0
push esi
push 0x1003218
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a936
test ebx, ebx
je 0x100bdd5
push dword [ebp - 0x9a4]
push 0x4033c3b0
push esi
jmp 0x100bd18
and dword [ebp - 0x9a0], 0
jmp 0x100bde8
mov dword [ebp - 0x99c], 1
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x9a0], 0
je 0x100be0f
push dword [ebp - 0x9a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x99c]
jmp 0x100be33
push ebx
push 0x54f
push 0x10034d8
push 0x28e
push 0x10032f8
call fcn.0100a7c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a07f
leave
ret 0xc