Function at 0x100532f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100dbe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], 0xffffffff
mov eax, dword [edi + 0xc]
mov dword [ecx], 0
mov dword [ebp - 0x34], eax
mov byte [eax + 0x27d], 0
cmp dword [edi + 0x78], 0
je 0x10053342
push 2
push 3
push edi
call fcn.10052030
add esp, 0xc
push esi
push ebx
push edi
call fcn.10053860
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10053361
inc dword [eax + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmp dword [edi + 0x78], 0
je 0x10053375
push 3
push edi
call fcn.10052070
mov eax, dword [ebp - 0x28]
add esp, 8
test eax, eax
jne 0x10053602
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x6b4], eax
je 0x100533be
push 1
push edi
call fcn.1003d9c0
push dword [edi + 0x6b8]
mov eax, dword [edi + 0x6b4]
push 0
push dword [edi + 0x9ac]
call eax
push 0
push edi
mov esi, eax
call fcn.1003d9c0
add esp, 0x1c
test esi, esi
jne 0x100536aa
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x100533e9
push esi
push ebx
lea eax, [ebp - 0x3c]
push eax
push 2
call fcn.100611a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100535b6
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x17
call esi
test eax, eax
jle 0x1005341e
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push ebx
push eax
push 0x17
call fcn.100611a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100535b6
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x100], 2
jne 0x1005343b
mov eax, dword [edi + 0x70]
mov al, byte [eax + 0xe3]
test al, al
je 0x100536aa
push str.localhost
push ebx
call fcn.10051030
add esp, 8
test eax, eax
je 0x1005361d
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x2c]
movzx eax, ax
push eax
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x40], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x34]
push eax
push str.127.0.0.1
push 2
call esi
cmp eax, 1
jl 0x10053667
mov eax, dword [ebp - 0x34]
push 1
push 0x3a
mov dword [ebp - 0x10], eax
call dword [0x100dbe48]
mov esi, eax
add esp, 8
test esi, esi
je 0x10053667
movups xmm0, xmmword [ebp - 0x14]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 4], 2
lea ecx, [eax + 0x10]
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], eax
movups xmmword [eax], xmm0
mov dword [esi + 0x14], ecx
movq xmm0, qword [str.localhost]
movq qword [ecx], xmm0
mov ax, word [0x100bb37c]
push 1
push 0x46
mov word [ecx + 8], ax
call dword [0x100dbe48]
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1005350f
xor edx, edx
jmp 0x100535b3
push dword [ebp - 0x40]
mov eax, 0x17
mov word [ebp - 0x64], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x14]
push eax
push 0x100bc720
push 0x17
mov dword [ebp - 0x60], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x10053546
xor edx, edx
jmp 0x100535b3
movups xmm1, xmmword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
lea ecx, [edx + 0x20]
movups xmmword [ebp - 0x5c], xmm1
movups xmm0, xmmword [ebp - 0x64]
mov dword [edx + 0x18], ecx
mov dword [edx], 0
mov dword [edx + 4], 0x17
mov dword [edx + 8], 1
mov dword [edx + 0xc], 6
mov dword [edx + 0x10], 0x1c
mov dword [edx + 0x1c], 0
movups xmmword [ecx], xmm0
unpckhpd xmm1, xmm1
movq qword [ecx + 0x10], xmm1
mov dword [ecx + 0x18], 0
add ecx, 0x1c
mov dword [edx + 0x14], ecx
movq xmm0, qword [str.localhost]
movq qword [ecx], xmm0
mov ax, word [0x100bb37c]
mov word [ecx + 8], ax
mov dword [esi + 0x1c], edx
cmp dword [edi + 0x78], 0
je 0x100535c9
push 2
push 3
push edi
call fcn.10052030
add esp, 0xc
push dword [ebp - 0x2c]
push ebx
push esi
push edi
call fcn.10052930
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [edi + 0x78], 0
je 0x100535ee
push 3
push edi
call fcn.10052070
mov eax, dword [ebp - 0x28]
add esp, 8
test eax, eax
jne 0x100536a3
push esi
call fcn.10060fd0
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
mov dword [edx], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x1005363c
cmp byte [edi + 0x712], 0
je 0x1005363c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
push ebx
push edi
call fcn.1007b4e0
jmp 0x1005365a
push dword [ebp - 0x34]
push edi
call fcn.1007b4c0
add esp, 8
test al, al
je 0x100536aa
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
push ebx
push edi
call fcn.10061570
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100535b6
cmp dword [ebp - 0x38], 0
je 0x100535ff
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x27d], 0
lea eax, [ebp - 0x28]
push eax
push edi
je 0x10053685
call fcn.1007b5f0
jmp 0x1005368a
call fcn.10042e80
add esp, 8
test eax, eax
jne 0x100536aa
mov eax, dword [ebp - 0x28]
mov ecx, 0
test eax, eax
sete cl
jmp 0x10053605
xor ecx, ecx
jmp 0x10053605
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c2f5
mov esp, ebp
pop ebp
ret