Function at 0x10034000
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101363db
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x101b2070]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ecx], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [edx], edi
cmp eax, edi
jne 0x1003409a
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x108], edi
call fcn.10033c60
movzx eax, ax
test ax, ax
je 0x1003414c
test bx, bx
je 0x100340d2
cmp bx, ax
je 0x100340d2
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1003429c
cmp eax, 1
jne 0x100340a4
lea ebx, [eax + 1]
jmp 0x1003405a
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xe8
add eax, 0x17
movzx ebx, ax
mov eax, 0xff
cmp bx, ax
jne 0x1003405a
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1003429c
mov word [esp + 0x50], ax
cmp eax, 2
je 0x100340f3
cmp eax, 0x17
je 0x100340fa
push 0x2741
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1003429c
mov ecx, 0x10
jmp 0x100340ff
mov ecx, 0x1c
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x100340cb
lea ecx, [esp + 0x50]
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ecx
call fcn.10035470
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, edi
push ecx
call fcn.100342c0
add esp, 0xc
mov esi, eax
jmp 0x10034289
xor eax, eax
push 3
mov dword [esp + 0x38], eax
movzx edx, bx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push esi
lea ecx, [esp + 0x74]
lea eax, [esp + 0x78]
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x40], edx
mov dword [esp + 0x78], eax
call fcn.100354d0
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x70]
cmp eax, edx
je 0x100341c4
push eax
call fcn.1011bc28
add esp, 4
test esi, esi
je 0x100341d6
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1003429c
mov eax, dword [esp + 0x24]
mov ebx, eax
test eax, eax
je 0x10034256
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x100341ed
cmp eax, 0x17
jne 0x1003424f
mov esi, dword [ebx + 0x18]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
cmp eax, edi
jae 0x1003422f
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, ecx
ja 0x1003422f
mov esi, ecx
sub esi, eax
sar esi, 2
cmp edi, dword [esp + 0x1c]
jne 0x10034224
lea eax, [esp + 0x14]
call fcn.10037360
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test edi, edi
je 0x10034248
mov edx, dword [eax + esi*4]
mov dword [edi], edx
jmp 0x10034248
cmp edi, dword [esp + 0x1c]
jne 0x10034242
lea eax, [esp + 0x14]
call fcn.10037360
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10034248
mov dword [edi], esi
add edi, 4
mov dword [esp + 0x18], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x100341e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.100342c0
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
jne 0x10034289
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003429a
push eax
call fcn.1011baa9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret