Function at 0x10006960
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
mov ebp, dword [esp + 0x2b8]
or eax, 0xffffffff
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ebp
lea eax, [esp + 0x1c0]
xor edi, edi
push 0x100092ac
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
call esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x1d8]
push str._d._d._d._d
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x48]
add esp, 0x24
cmp ecx, edi
jl 0x10006a4c
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jl 0x10006a4c
mov edi, dword [esp + 0x14]
test edi, edi
jl 0x10006a4c
mov edx, dword [esp + 0x18]
test edx, edx
jl 0x10006a4c
cmp ecx, 0xff
jg 0x10006a4c
cmp ebx, 0xff
jg 0x10006a4c
cmp edi, 0xff
jg 0x10006a4c
cmp edx, 0xff
jg 0x10006a4c
cmp eax, 4
jne 0x10006a4c
push ebp
lea eax, [esp + 0x1c0]
push 0x100092ac
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x1bc]
push ecx
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
add esp, 0x2ac
ret
mov eax, dword [str.YOYOYOY]
mov ecx, dword [0x10009790]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x34]
mov edx, dword [str.UOSOSOP]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x10009788]
mov ecx, 0xa
mov dword [esp + 0x62], eax
xor eax, eax
lea edi, [esp + 0x66]
mov dword [esp + 0x5e], edx
rep stosd dword es:[edi], eax
mov ecx, dword [str.YOYOUOU]
mov edx, dword [0x10009780]
stosw word es:[edi], ax
mov dword [esp + 0x90], ecx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x94], edx
mov edx, dword [str.PSXOSTQORTOSTP]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10009768]
stosw word es:[edi], ax
mov eax, dword [str.UOSOSOW]
mov dword [esp + 0xc6], ecx
mov dword [esp + 0xc2], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xca]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10009774]
stosw word es:[edi], ax
mov eax, dword [0x10009770]
mov dword [esp + 0xf4], edx
mov dx, word [0x10009778]
mov dword [esp + 0xf8], eax
mov al, byte [0x1000977a]
mov dword [esp + 0xfc], ecx
mov byte [esp + 0x102], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x103]
mov word [esp + 0x100], dx
mov edx, dword [0x10009760]
rep stosd dword es:[edi], eax
mov ecx, dword [str.UOSOSOS]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x126], ecx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x12e]
mov dword [esp + 0x12a], edx
mov edx, dword [0x10009754]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10009750]
stosw word es:[edi], ax
mov eax, dword [str.PSXOSTQORTOSTQ]
mov dword [esp + 0x15c], ecx
mov cl, byte [0x1000975a]
mov dword [esp + 0x158], eax
mov ax, word [0x10009758]
mov byte [esp + 0x166], cl
mov word [esp + 0x164], ax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x167]
mov dword [esp + 0x160], edx
mov edx, dword [str.UOSOSOU]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10009748]
mov dword [esp + 0x18a], edx
mov dword [esp + 0x18e], eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x192]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
lea edi, [esp + 0x2c]
mov al, byte [edi]
mov esi, 1
test al, al
mov dword [esp + 0x18], esi
mov edx, edi
je 0x10006c2b
mov cl, byte [edx]
mov esi, 0x10009740
test cl, cl
je 0x10006c21
mov al, byte [esi]
test al, al
je 0x10006c21
xor al, cl
inc esi
mov byte [edx], al
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x10006c0e
cmp byte [edx], 0
jne 0x10006c03
mov esi, 1
push edi
call sub.WS2_32.dll_inet_addr
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c8]
push edx
push 8
push esi
push eax
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x10006c8f
push 0x927c0
call ebp
inc ebx
add edi, 0x32
cmp ebx, 8
jl 0x10006bf2
mov edx, dword [esp + 0x2c0]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 8
push esi
push edx
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x10006c8f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10006cb9
cmp word [eax + 8], si
je 0x10006ca9
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10006c97
jmp 0x10006cb9
mov edx, dword [esp + 0x2c4]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], esi
mov dword [edx], ecx
push esi
push eax
call sub.DNSAPI.dll_DnsRecordListFree
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret