Function at 0x100bb73
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 0x100be7e
xor ecx, ecx
cmp cx, word [edi]
je 0x100be7e
cmp eax, esi
jne 0x100bbce
push ebx
push 0x54f
push 0x1003530
push 0x290
jmp 0x100be8e
lea eax, [ebp - 0x998]
push eax
push 0x7fffffff
push edi
mov dword [ebp - 0x9a0], esi
mov dword [ebp - 0x998], esi
call fcn.0100b7ae
test eax, eax
je 0x100bc05
push ebx
push 0x54f
push 0x1003528
push 0x296
jmp 0x100be8e
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 0x100bc7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bc5b
test dword [eax + 0x1c], 0x800
je 0x100bc5b
push esi
push 0x1003230
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
test ebx, ebx
je 0x100bc6f
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 0x100be98
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 0x100bce5
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bcc4
test dword [eax + 0x1c], 0x800
je 0x100bcc4
push dword [ebp - 0x99c]
push 0x1003230
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
test ebx, ebx
je 0x100bcdd
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 0x100bc70
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 0x100bd8d
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bd6f
test dword [eax + 0x1c], 0x800
je 0x100bd6f
push edi
push 0x1003230
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
test ebx, ebx
je 0x100bdd2
push dword [ebp - 0x9a4]
push 0x4033c3b0
push edi
mov eax, dword [ebx]
push ebx
call dword [eax + 0x1c]
add esp, 0x10
jmp 0x100be4f
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 0x100bdda
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100bd6f
test dword [eax + 0x1c], 0x800
je 0x100bd6f
push edi
push 0x1003230
push 0x1b
jmp 0x100bd64
mov dword [ebp - 0x9a0], edi
jmp 0x100be4f
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 0x100be45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x102b00c]
cmp eax, 0x102b00c
je 0x100be27
test dword [eax + 0x1c], 0x800
je 0x100be27
push esi
push 0x1003230
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a84
test ebx, ebx
je 0x100be3c
push dword [ebp - 0x9a4]
push 0x4033c3b0
push esi
jmp 0x100bd7f
and dword [ebp - 0x9a0], 0
jmp 0x100be4f
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 0x100be76
push dword [ebp - 0x9a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x99c]
jmp 0x100be9a
push ebx
push 0x54f
push 0x1003520
push 0x28f
push 0x1003310
call fcn.0100a8b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a16f
leave
ret 0xc