Function at 0x421f70
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4a237c]
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 0x421fc4
push 2
push 3
push edi
call fcn.0041ef60
add esp, 0xc
push esi
push ebx
push edi
call fcn.004223c0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x421fef
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.0041a5f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc dword [eax + 0x10]
xor ebp, ebp
cmp dword [edi + 0x78], 0
je 0x422000
push 3
push edi
call fcn.0041efa0
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x42220a
cmp dword [edi + 0x688], 0
mov dword [esp + 0x18], 0
je 0x422053
push 1
push edi
call fcn.0040a9f0
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.0040a9f0
add esp, 0x1c
test esi, esi
jne 0x422196
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 0x422080
push esi
push ebx
lea eax, [esp + 0x28]
push eax
push 2
call fcn.0042dba0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4221bd
lea eax, [esp + 0x28]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x4220b0
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push ebx
push eax
push 0x17
call fcn.0042dba0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4221bd
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x452], 2
jne 0x4220ce
push edi
call fcn.00421ac0
add esp, 4
test al, al
je 0x422196
push str.localhost
push ebx
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x422154
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4220e5
sub ecx, edx
cmp ecx, 0xa
jb 0x42210c
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.0041e150
add esp, 0xc
test eax, eax
jne 0x422154
cmp byte [esp + 0x4c], 0
je 0x422131
cmp byte [edi + 0x6e6], 0
je 0x422131
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0044b580
add esp, 0x10
jmp 0x422161
push esi
push edi
call fcn.0044b560
add esp, 8
test al, al
je 0x422196
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0042df80
add esp, 0x10
jmp 0x422161
push ebx
push dword [esp + 0x18]
call fcn.00422590
add esp, 8
mov esi, eax
test esi, esi
jne 0x4221bd
cmp dword [esp + 0x18], eax
je 0x42220a
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x1da], 0
lea eax, [esp + 0x10]
push eax
push edi
je 0x42218a
call fcn.0044b6a0
jmp 0x42218f
call fcn.0040ff80
add esp, 8
test eax, eax
je 0x4221ac
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0045a753
add esp, 0x2c
ret
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x1c], ecx
mov ebp, ecx
jmp 0x42220a
cmp dword [edi + 0x78], 0
je 0x4221d0
push 2
push 3
push edi
call fcn.0041ef60
add esp, 0xc
push dword [esp + 0x14]
push 0
push ebx
push esi
push edi
call fcn.00421700
add esp, 0x14
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], 0
je 0x4221f6
push 3
push edi
call fcn.0041efa0
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x422208
push esi
call fcn.0042d9d0
add esp, 4
jmp 0x42220a
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.0045a753
add esp, 0x2c
ret