Function at 0x4222f0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4a337c]
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 0x422344
push 2
push 3
push edi
call fcn.0041f2e0
add esp, 0xc
push esi
push ebx
push edi
call fcn.00422740
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x42236f
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.0041a970
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc dword [eax + 0x10]
xor ebp, ebp
cmp dword [edi + 0x78], 0
je 0x422380
push 3
push edi
call fcn.0041f320
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x42258a
cmp dword [edi + 0x688], 0
mov dword [esp + 0x18], 0
je 0x4223d3
push 1
push edi
call fcn.0040ad60
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.0040ad60
add esp, 0x1c
test esi, esi
jne 0x422516
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 0x422400
push esi
push ebx
lea eax, [esp + 0x28]
push eax
push 2
call fcn.0042df20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42253d
lea eax, [esp + 0x28]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x422430
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push ebx
push eax
push 0x17
call fcn.0042df20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42253d
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x452], 2
jne 0x42244e
push edi
call fcn.00421e40
add esp, 4
test al, al
je 0x422516
push str.localhost
push ebx
call fcn.0041e470
add esp, 8
test eax, eax
jne 0x4224d4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422465
sub ecx, edx
cmp ecx, 0xa
jb 0x42248c
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.0041e4d0
add esp, 0xc
test eax, eax
jne 0x4224d4
cmp byte [esp + 0x4c], 0
je 0x4224b1
cmp byte [edi + 0x6e6], 0
je 0x4224b1
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0044b8d0
add esp, 0x10
jmp 0x4224e1
push esi
push edi
call fcn.0044b8b0
add esp, 8
test al, al
je 0x422516
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.0042e300
add esp, 0x10
jmp 0x4224e1
push ebx
push dword [esp + 0x18]
call fcn.00422910
add esp, 8
mov esi, eax
test esi, esi
jne 0x42253d
cmp dword [esp + 0x18], eax
je 0x42258a
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x1da], 0
lea eax, [esp + 0x10]
push eax
push edi
je 0x42250a
call fcn.0044b9f0
jmp 0x42250f
call fcn.00410300
add esp, 8
test eax, eax
je 0x42252c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0045aab3
add esp, 0x2c
ret
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x1c], ecx
mov ebp, ecx
jmp 0x42258a
cmp dword [edi + 0x78], 0
je 0x422550
push 2
push 3
push edi
call fcn.0041f2e0
add esp, 0xc
push dword [esp + 0x14]
push 0
push ebx
push esi
push edi
call fcn.00421a80
add esp, 0x14
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], 0
je 0x422576
push 3
push edi
call fcn.0041f320
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x422588
push esi
call fcn.0042dd50
add esp, 4
jmp 0x42258a
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.0045aab3
add esp, 0x2c
ret