Function at 0x420b60
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4a0368]
xor eax, esp
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
mov esi, dword [esp + 0x44]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ecx
mov eax, dword [edi + 0xc]
mov dword [ecx], 0
mov dword [esp + 0x1c], eax
mov byte [eax + 0x1da], 0
cmp dword [edi + 0x78], 0
je 0x420bb4
push 2
push 3
push edi
call fcn.0041db50
add esp, 0xc
push esi
push ebx
push edi
call fcn.00420fb0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x420bdf
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.004191d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc dword [eax + 0x10]
xor ebp, ebp
cmp dword [edi + 0x78], 0
je 0x420bf0
push 3
push edi
call fcn.0041db90
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x420dfa
cmp dword [edi + 0x688], 0
mov dword [esp + 0x18], 0
je 0x420c43
push 1
push edi
call fcn.004095d0
push dword [edi + 0x68c]
mov eax, dword [edi + 0x688]
push 0
push dword [edi + 0x988]
call eax
push 0
push edi
mov esi, eax
call fcn.004095d0
add esp, 0x1c
test esi, esi
jne 0x420d86
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x420c70
push esi
push ebx
lea eax, [esp + 0x28]
push eax
push 2
call fcn.0042c7b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x420dad
lea eax, [esp + 0x28]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x420ca0
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push ebx
push eax
push 0x17
call fcn.0042c7b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x420dad
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x452], 2
jne 0x420cbe
push edi
call fcn.004206b0
add esp, 4
test al, al
je 0x420d86
push str.localhost
push ebx
call fcn.0041ccd0
add esp, 8
test eax, eax
jne 0x420d44
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420cd5
sub ecx, edx
cmp ecx, 0xa
jb 0x420cfc
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.0041cd30
add esp, 0xc
test eax, eax
jne 0x420d44
cmp byte [esp + 0x4c], 0
je 0x420d21
cmp byte [edi + 0x6e6], 0
je 0x420d21
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0044a1a0
add esp, 0x10
jmp 0x420d51
push esi
push edi
call fcn.0044a180
add esp, 8
test al, al
je 0x420d86
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0042cb90
add esp, 0x10
jmp 0x420d51
push ebx
push dword [esp + 0x18]
call fcn.00421180
add esp, 8
mov esi, eax
test esi, esi
jne 0x420dad
cmp dword [esp + 0x18], eax
je 0x420dfa
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x1da], 0
lea eax, [esp + 0x10]
push eax
push edi
je 0x420d7a
call fcn.0044a2c0
jmp 0x420d7f
call fcn.0040eb60
add esp, 8
test eax, eax
je 0x420d9c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00459004
add esp, 0x2c
ret
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x1c], ecx
mov ebp, ecx
jmp 0x420dfa
cmp dword [edi + 0x78], 0
je 0x420dc0
push 2
push 3
push edi
call fcn.0041db50
add esp, 0xc
push dword [esp + 0x14]
push 0
push ebx
push esi
push edi
call fcn.004202f0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], 0
je 0x420de6
push 3
push edi
call fcn.0041db90
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x420df8
push esi
call fcn.0042c5e0
add esp, 4
jmp 0x420dfa
xor ebp, ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
call fcn.00459004
add esp, 0x2c
ret