Function at 0x33959a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [0x34e57c], edi
je 0x339742
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x3395d3
cmp eax, edi
jne 0x3397b4
push 0x3575d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x34e57c]
cmp eax, edi
je 0x33969e
mov esi, eax
shl eax, 2
mov dword [ebp - 4], esi
cmp eax, edi
je 0x33960d
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
jmp 0x339610
mov dword [ebp - 8], edi
cmp dword [ebp - 8], edi
je 0x33969b
xor ebx, ebx
cmp esi, edi
jbe 0x33969e
mov eax, dword [0x34e584]
mov eax, dword [eax + ebx*4]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x33962c
sub ecx, esi
inc ecx
je 0x339659
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x33963b
sub eax, ecx
add eax, 2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x33965b
xor eax, eax
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
cmp eax, edi
je 0x339692
mov ecx, dword [0x34e584]
mov esi, dword [ecx + ebx*4]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x339673
sub ecx, edi
inc ecx
push ecx
push esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
inc ebx
xor edi, edi
cmp ebx, dword [ebp - 4]
jb 0x33961f
jmp 0x33969e
push ebx
push ecx
call fcn.0032f6d7
pop ecx
pop ecx
mov dword [ebp - 4], edi
push 0x3575d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0x1388
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.003356a1
add esp, 0x14
cmp dword [ebp - 0x10], edi
je 0x339730
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
cmp esi, edi
je 0x339730
mov ebx, dword [ebp + 0xc]
push ebx
push edi
push dword [ebp + 8]
call sub.ntdll.dll_memset
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3396ec
sub eax, ecx
je 0x339729
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3396fc
sub eax, edx
cmp eax, ebx
jb 0x33970e
lea eax, [ebx - 1]
jmp 0x33971c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x339713
sub eax, edx
push eax
push esi
push dword [ebp + 8]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0032f6d7
pop ecx
pop ecx
cmp dword [ebp - 0xc], edi
jne 0x3397bb
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x3397bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
cmp esi, edi
je 0x3397bb
mov ebx, dword [ebp + 0xc]
push ebx
push edi
push dword [ebp + 8]
call sub.ntdll.dll_memset
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x339777
sub eax, ecx
je 0x3397b4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x339787
sub eax, edx
cmp eax, ebx
jb 0x339799
lea eax, [ebx - 1]
jmp 0x3397a7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x33979e
sub eax, edx
push eax
push esi
push dword [ebp + 8]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret