Function at 0x1015e670
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
movzx eax, word [ecx + 2]
and eax, 1
mov dword [0x1021d6d4], ebx
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x11]
push esi
imul edx, eax, 0x3e8
movzx eax, byte [ecx + 0x10]
push edi
push dword [ecx + 0x14]
xor edi, edi
add edx, eax
mov dword [esp + 0x18], edi
push ecx
mov dword [esp + 0x2c], edx
call fcn.10160570
mov esi, eax
test esi, esi
je 0x1015e6fb
push dword [esp + 0x18]
push 0x81
push esi
call fcn.10160360
mov ebx, eax
test ebx, ebx
je 0x1015ea6a
push ebx
call fcn.1015b830
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1015ea6c
push dword [esp + 0x18]
push esi
push ebx
push eax
call fcn.10160310
mov ecx, dword [esp + 0x14]
mov edi, ecx
jmp 0x1015e702
mov edi, 0x10010b20
xor ecx, ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
movzx eax, word [esi + 0x12]
mov dword [esp + 0x1c], eax
cmp eax, 0xfffe
jne 0x1015e774
cmp byte [edi], 0
jne 0x1015e73d
push ecx
mov dword [0x1021d6d4], 4
call fcn.100be50c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
push edi
push 8
call fcn.1015bdb0
test eax, eax
jne 0x1015e76c
mov eax, dword [esp + 0x14]
push eax
mov dword [0x1021d6d4], 0x29
call fcn.100be50c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
dec eax
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.1015ea90
cmp dword [0x10230f04], ebp
jne 0x1015e7a4
mov eax, dword [esp + 0x14]
push eax
mov dword [0x1021d6d4], 0x60
call fcn.100be50c
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
push ebx
push edi
push dword [esp + 0x3c]
push esi
call fcn.1015e0f0
mov edi, eax
test edi, edi
je 0x1015ea64
call fcn.1015f0f0
push dword [esi + 0x18]
mov byte [esp + 0x17], al
push esi
call fcn.10160570
mov dword [esp + 0x28], eax
test eax, eax
je 0x1015e8c2
cmp byte [eax], 0
je 0x1015e8c2
push dword [esp + 0x18]
push 0x200
push eax
call fcn.10160360
mov ebx, eax
test ebx, ebx
je 0x1015ea64
push ebx
call fcn.1015b830
mov esi, eax
add esp, 4
test esi, esi
je 0x1015ea64
push dword [0x1021d6f8]
push dword [esp + 0x2c]
push ebx
push esi
call fcn.10160310
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x1015e84d
push dword [esp + 0x24]
mov dword [edi + 0x54], eax
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push edi
call fcn.1015e260
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x1015ea6c
push esi
call sub.WS2_32.dll_gethostbyname
push esi
mov ebx, eax
call fcn.100be50c
add esp, 4
test ebx, ebx
jne 0x1015e88b
mov eax, dword [esp + 0x14]
push eax
mov dword [0x1021d6d4], 0x69
call fcn.100be50c
add esp, 4
push edi
call fcn.1015ec10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
movsx eax, word [ebx + 0xa]
push eax
mov eax, dword [ebx + 0xc]
push dword [eax]
lea eax, [edi + 0x54]
push eax
call fcn.101a3c10
add esp, 0xc
push dword [esp + 0x24]
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push edi
call fcn.1015e260
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x1015ea6c
cmp byte [esp + 0x13], 0
je 0x1015e975
mov esi, dword [0x10232924]
test esi, esi
je 0x1015ea64
nop dword [eax + eax]
cmp dword [esi + 8], 0
je 0x1015e962
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1015e8f3
mov dword [edi + 0x54], eax
jmp 0x1015e916
lea eax, [esi + 0xc]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1015e962
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [edi + 0x54]
push eax
call fcn.101a3c10
add esp, 0xc
push dword [esp + 0x24]
mov dword [0x1021d6d4], 0
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push edi
call fcn.1015e260
mov ebp, eax
test ebp, ebp
jne 0x1015ea64
push edi
call fcn.1015ec10
push ebx
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.1015e0f0
mov edi, eax
test edi, edi
je 0x1015ea64
mov esi, dword [esi]
test esi, esi
jne 0x1015e8e0
mov eax, dword [esp + 0x14]
jmp 0x1015ea6c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [esp + 0x34], ebp
jmp 0x1015e994
mov esi, dword [esp + 0x30]
push dword [esp + 0x1c]
add ebx, 0xbb8
push dword [esp + 0x24]
push esi
call fcn.1015f3f0
test eax, eax
je 0x1015ea64
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.1015f800
mov esi, eax
test esi, esi
je 0x1015e9e3
movzx edx, word [esi + 4]
mov ecx, edx
mov dword [0x1021d6d4], ecx
test dx, dx
je 0x1015ea22
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.1015f800
mov esi, eax
test esi, esi
jne 0x1015e9c1
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1015e9fc
call fcn.1015f600
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
cmp eax, 3
jl 0x1015e990
test esi, esi
jne 0x1015ea22
cmp dword [0x1021d6d4], ebp
jne 0x1015ea64
mov dword [0x1021d6d4], 0x69
mov eax, dword [esp + 0x14]
jmp 0x1015ea6c
movzx eax, word [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov word [edi + 0x48], ax
movzx eax, word [esi + 0x10]
mov word [edi + 0x46], ax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x54], eax
nop dword [eax]
push 0
push 0
call fcn.1015f800
test eax, eax
jne 0x1015ea40
push dword [esp + 0x24]
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x28]
push 1
push edi
call fcn.1015e260
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x1015ea6c
xor eax, eax
push eax
call fcn.100be50c
add esp, 4
test ebp, ebp
jne 0x1015ea83
test edi, edi
je 0x1015ea83
push edi
call fcn.1015ec10
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8