Function at 0x100ba73
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 0x100bd7e
xor ecx, ecx
cmp cx, word [edi]
je 0x100bd7e
cmp eax, esi
jne 0x100bace
push ebx
push 0x54f
push 0x1003508
push 0x290
jmp 0x100bd8e
lea eax, [ebp - 0x998]
push eax
push 0x7fffffff
push edi
mov dword [ebp - 0x9a0], esi
mov dword [ebp - 0x998], esi
call fcn.0100b6ae
test eax, eax
je 0x100bb05
push ebx
push 0x54f
push 0x1003500
push 0x296
jmp 0x100bd8e
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 0x100bb7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bb5b
test dword [eax + 0x1c], 0x800
je 0x100bb5b
push esi
push 0x1003218
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
test ebx, ebx
je 0x100bb6f
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 0x100bd98
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 0x100bbe5
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bbc4
test dword [eax + 0x1c], 0x800
je 0x100bbc4
push dword [ebp - 0x99c]
push 0x1003218
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
test ebx, ebx
je 0x100bbdd
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 0x100bb70
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 0x100bc8d
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bc6f
test dword [eax + 0x1c], 0x800
je 0x100bc6f
push edi
push 0x1003218
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
test ebx, ebx
je 0x100bcd2
push dword [ebp - 0x9a4]
push 0x4033c3b0
push edi
mov eax, dword [ebx]
push ebx
call dword [eax + 0x1c]
add esp, 0x10
jmp 0x100bd4f
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 0x100bcda
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bc6f
test dword [eax + 0x1c], 0x800
je 0x100bc6f
push edi
push 0x1003218
push 0x1b
jmp 0x100bc64
mov dword [ebp - 0x9a0], edi
jmp 0x100bd4f
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 0x100bd45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bd27
test dword [eax + 0x1c], 0x800
je 0x100bd27
push esi
push 0x1003218
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019984
test ebx, ebx
je 0x100bd3c
push dword [ebp - 0x9a4]
push 0x4033c3b0
push esi
jmp 0x100bc7f
and dword [ebp - 0x9a0], 0
jmp 0x100bd4f
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 0x100bd76
push dword [ebp - 0x9a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x99c]
jmp 0x100bd9a
push ebx
push 0x54f
push 0x10034f8
push 0x28f
push 0x10032f8
call fcn.0100a7b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a071
leave
ret 0xc