Function at 0x46c8e0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ff048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov byte [ecx + 0x25e], 0
cmp dword [edi + 0x78], 0
je 0x46c93b
push 2
push 3
push edi
call fcn.0046b390
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
push esi
push edi
call fcn.0046ce40
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x46c964
push esi
push str.Hostname__s_was_found_in_DNS_cache_n
push edi
call fcn.00467660
mov eax, dword [ebp - 0x18]
add esp, 0xc
inc dword [eax + 0x10]
xor ebx, ebx
cmp dword [edi + 0x78], 0
je 0x46c975
push 3
push edi
call fcn.0046b3d0
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x46cb00
cmp dword [edi + 0x6b4], 0
mov dword [ebp - 0x24], 0
je 0x46c9d5
push 1
push edi
call fcn.00457bc0
push dword [edi + 0x6b8]
mov eax, dword [edi + 0x6b4]
push 0
push dword [edi + 0x99c]
call eax
push 0
push edi
mov esi, eax
call fcn.00457bc0
add esp, 0x1c
test esi, esi
je 0x46c9d2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250dc
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x46ca05
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push esi
push eax
push 2
call fcn.00478720
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46cab6
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x46ca35
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.00478720
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46cab6
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x2c]
push edi
call fcn.0046c0a0
add esp, 8
test al, al
je 0x46c9be
cmp byte [ebp + 0x14], 0
je 0x46ca68
cmp byte [edi + 0x70c], 0
je 0x46ca68
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push esi
push edi
call fcn.00492540
jmp 0x46ca76
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push esi
push edi
call fcn.00478910
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46cab6
cmp dword [ebp - 0x24], eax
je 0x46cb00
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x25e], 0
lea eax, [ebp - 0x18]
push eax
push edi
je 0x46ca9c
call fcn.00492660
jmp 0x46caa1
call fcn.0045d230
add esp, 8
test eax, eax
jne 0x46c9be
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
sete bl
jmp 0x46cb00
cmp dword [edi + 0x78], 0
je 0x46cac9
push 2
push 3
push edi
call fcn.0046b390
add esp, 0xc
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
push edi
call fcn.0046c100
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x78], 0
je 0x46caed
push 3
push edi
call fcn.0046b3d0
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x46cafe
push esi
call fcn.00478410
add esp, 4
jmp 0x46cb00
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004250dc
mov esp, ebp
pop ebp
ret