Function at 0x1001a920
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1002a738
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
mov ebp, ecx
je 0x1001a9a0
cmp byte [eax], bl
je 0x1001a9a0
mov cl, byte [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov byte [esp + 8], cl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
lea edx, [esp + 8]
mov dword [esp + 0x34], ebx
push edx
push ebx
push 0x20
push eax
call fcn.1000fd60
add esp, 0x10
cmp eax, 5
jge 0x1001a9b5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.10010500
mov edx, dword [esp + 0xc]
push edx
call fcn.10009e1d
add esp, 4
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x1001a9c5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x1001a9f9
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x1001a9e4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x1001a9f9
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x1001aa09
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x24]
cmp eax, ebx
jne 0x1001aa23
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call edi
mov edx, dword [esp + 0x18]
mov word [esp + 0x2c], ax
add esp, 4
mov eax, dword [edx + 0x34]
cmp eax, ebx
jne 0x1001aa46
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push str.RULETYPE_TCP
push eax
call esi
add esp, 8
test eax, eax
jne 0x1001aa68
mov dword [esp + 0x2c], 1
jmp 0x1001aaee
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x34]
cmp eax, ebx
jne 0x1001aa78
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push str.RULETYPE_UDP
push eax
call esi
add esp, 8
test eax, eax
jne 0x1001aa91
mov dword [esp + 0x2c], 2
jmp 0x1001aaee
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
jne 0x1001aaa1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push str.RULETYPE_ALL
push eax
call esi
add esp, 8
test eax, eax
jne 0x1001aaba
mov dword [esp + 0x2c], 3
jmp 0x1001aaee
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x34]
cmp eax, ebx
jne 0x1001aaca
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 1
jne 0x1001aadf
mov dword [esp + 0x2c], eax
jmp 0x1001aaee
xor ecx, ecx
cmp eax, 2
setne cl
add ecx, 2
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x44]
cmp eax, ebx
jne 0x1001aafe
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push str.true
push eax
call esi
add esp, 8
test eax, eax
jne 0x1001ab14
mov byte [esp + 0x30], 1
jmp 0x1001ab58
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x44]
cmp eax, ebx
jne 0x1001ab24
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push str.false
push eax
call esi
add esp, 8
test eax, eax
jne 0x1001ab39
mov byte [esp + 0x30], bl
jmp 0x1001ab58
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x44]
cmp eax, ebx
jne 0x1001ab49
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call edi
add esp, 4
test eax, eax
setne dl
mov byte [esp + 0x30], dl
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 4]
lea eax, [esp + 0x20]
push eax
push 1
push edx
call fcn.1001ad20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov edi, eax
je 0x1001abb5
lea esi, [ecx + 4]
mov eax, dword [esi]
cmp eax, ebx
je 0x1001ab9f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1001ab96
cmp al, 0xff
je 0x1001ab96
dec al
mov byte [ecx], al
jmp 0x1001ab9f
push ecx
call fcn.10009e1d
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea eax, [esi - 4]
cmp eax, edi
jne 0x1001ab7c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10009e1d
mov ecx, dword [esp + 0x38]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4