Function at 0x42ea06
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x46f008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov esi, edx
xor edx, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov eax, dword [edi + 0xc]
mov dword [ecx], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov byte [eax + 0x28d], dl
cmp dword [edi + 0x78], edx
je 0x42ea53
push ecx
push 3
pop edx
mov ecx, edi
call fcn.00419882
pop ecx
push ebx
mov edx, esi
mov ecx, edi
call fcn.0042e46c
mov ebx, eax
mov dword [ebp - 0x30], ebx
pop ecx
test ebx, ebx
je 0x42ea7e
push esi
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.0041d632
add esp, 0xc
inc dword [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [edi + 0x78], 0
je 0x42ea8e
push 3
pop edx
mov ecx, edi
call fcn.004198c0
test ebx, ebx
jne 0x42ec24
and dword [ebp - 0x2c], ebx
cmp dword [edi + 0x6e4], ebx
je 0x42eae0
mov dl, 1
mov ecx, edi
call fcn.00419622
push dword [edi + 0x6e8]
mov esi, dword [edi + 0x6e4]
mov ecx, esi
push ebx
push dword [edi + 0x9d4]
call dword [0x4553fc]
call esi
add esp, 0xc
xor dl, dl
mov ecx, edi
mov esi, eax
call fcn.00419622
test esi, esi
jne 0x42ebd3
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x42eb0f
push dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push esi
push 2
pop ecx
call fcn.0044014e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42ebe4
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x42eb3e
push dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push esi
push 0x17
pop ecx
call fcn.0044014e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42ebe4
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
mov al, byte [eax + 0x100]
mov byte [ebp - 0x19], al
cmp al, 2
jne 0x42eb5b
mov eax, dword [edi + 0x70]
mov al, byte [eax + 0xe3]
test al, al
je 0x42ebd3
mov edx, str.localhost
mov ecx, esi
call fcn.0041251e
test eax, eax
je 0x42eb75
mov ecx, dword [ebp - 0x20]
call fcn.0042e8e1
jmp 0x42ebba
cmp byte [ebp + 0xc], 0
je 0x42eb96
cmp byte [edi + 0x73c], 0
je 0x42eb96
lea eax, [ebp - 0x2c]
mov edx, esi
push eax
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00448adf
jmp 0x42ebb8
cmp byte [ebp - 0x19], 2
jne 0x42eba8
mov eax, dword [edi + 0x70]
cmp byte [eax + 0xe3], 0
je 0x42ebd3
lea eax, [ebp - 0x2c]
mov edx, esi
push eax
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00446b74
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x42ebe4
cmp dword [ebp - 0x2c], eax
je 0x42ec24
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.0042f147
test eax, eax
je 0x42ebd8
or eax, 0xffffffff
jmp 0x42ec2c
mov ebx, dword [ebp - 0x30]
xor eax, eax
test ebx, ebx
sete al
jmp 0x42ec27
cmp dword [edi + 0x78], 0
je 0x42ebf6
push ecx
push 3
pop edx
mov ecx, edi
call fcn.00419882
pop ecx
push dword [ebp - 0x20]
mov edx, esi
mov ecx, edi
push dword [ebp - 0x24]
call fcn.0042e71a
cmp dword [edi + 0x78], 0
mov ebx, eax
pop ecx
pop ecx
je 0x42ec19
push 3
pop edx
mov ecx, edi
call fcn.004198c0
test ebx, ebx
jne 0x42ec3b
mov ecx, esi
call fcn.0043fe82
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ca6
leave
ret
xor eax, eax
jmp 0x42ec27