Function at 0x10046030
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x2c
mov eax, dword [0x100ce350]
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 0x10046084
push 2
push 3
push edi
call fcn.10043020
add esp, 0xc
push esi
push ebx
push edi
call fcn.10046480
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x100460af
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.1003e6b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc dword [eax + 0x10]
xor ebp, ebp
cmp dword [edi + 0x78], 0
je 0x100460c0
push 3
push edi
call fcn.10043060
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x100462ca
cmp dword [edi + 0x688], 0
mov dword [esp + 0x18], 0
je 0x10046113
push 1
push edi
call fcn.1002eac0
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.1002eac0
add esp, 0x1c
test esi, esi
jne 0x10046256
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 0x10046140
push esi
push ebx
lea eax, [esp + 0x28]
push eax
push 2
call fcn.10051c60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004627d
lea eax, [esp + 0x28]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x10046170
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push ebx
push eax
push 0x17
call fcn.10051c60
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004627d
mov esi, dword [esp + 0x1c]
cmp byte [esi + 0x452], 2
jne 0x1004618e
push edi
call fcn.10045b80
add esp, 4
test al, al
je 0x10046256
push str.localhost
push ebx
call fcn.100421b0
add esp, 8
test eax, eax
jne 0x10046214
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100461a5
sub ecx, edx
cmp ecx, 0xa
jb 0x100461cc
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.10042210
add esp, 0xc
test eax, eax
jne 0x10046214
cmp byte [esp + 0x4c], 0
je 0x100461f1
cmp byte [edi + 0x6e6], 0
je 0x100461f1
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.1006f610
add esp, 0x10
jmp 0x10046221
push esi
push edi
call fcn.1006f5f0
add esp, 8
test al, al
je 0x10046256
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebx
push edi
call fcn.10052040
add esp, 0x10
jmp 0x10046221
push ebx
push dword [esp + 0x18]
call fcn.10046650
add esp, 8
mov esi, eax
test esi, esi
jne 0x1004627d
cmp dword [esp + 0x18], eax
je 0x100462ca
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x1da], 0
lea eax, [esp + 0x10]
push eax
push edi
je 0x1004624a
call fcn.1006f730
jmp 0x1004624f
call fcn.10034060
add esp, 8
test eax, eax
je 0x1004626c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1007c2ab
add esp, 0x2c
ret
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x1c], ecx
mov ebp, ecx
jmp 0x100462ca
cmp dword [edi + 0x78], 0
je 0x10046290
push 2
push 3
push edi
call fcn.10043020
add esp, 0xc
push dword [esp + 0x14]
push 0
push ebx
push esi
push edi
call fcn.100457c0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], 0
je 0x100462b6
push 3
push edi
call fcn.10043060
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x100462c8
push esi
call fcn.10051a90
add esp, 4
jmp 0x100462ca
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.1007c2ab
add esp, 0x2c
ret