Function at 0x459fd0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x11c], eax
mov byte [eax], 0
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x45a307
mov bl, byte [esi]
test bl, bl
je 0x45a307
test edi, edi
je 0x45a307
cmp byte [edi], 0
je 0x45a307
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x10c], eax
mov eax, 0x4a277c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45a050
test dl, dl
je 0x45a04c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45a050
add eax, 2
add ecx, 2
test dl, dl
jne 0x45a030
xor eax, eax
jmp 0x45a055
sbb eax, eax
or eax, 1
test eax, eax
je 0x45a248
cmp bl, 0x5b
jne 0x45a0bd
push 0x5d
push esi
call fcn.0046e800
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45a307
inc esi
sub ebx, esi
mov dword [ebp - 0x118], ebx
cmp ebx, 0x80
jae 0x45a307
push ebx
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0046e120
lea eax, [ebp - 0x104]
mov byte [ebp + ebx - 0x104], 0
add esp, 0xc
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 2
jmp 0x45a0fc
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x45a0c2
lea eax, [ebp - 0x108]
sub ebx, ecx
push eax
push esi
push 2
mov dword [ebp - 0x118], ebx
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x45a0ee
mov dword [ebp - 0x10c], eax
jmp 0x45a0fc
cmp byte [esi + ebx - 1], 0x2e
jne 0x45a0fc
dec ebx
mov dword [ebp - 0x118], ebx
mov al, byte [edi]
test al, al
je 0x45a307
xor esi, esi
cmp al, 0x20
je 0x45a112
mov cl, al
cmp al, 9
jne 0x45a11c
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x45a108
mov edx, edi
test cl, cl
je 0x45a2c5
cmp cl, 0x20
je 0x45a13e
cmp cl, 9
je 0x45a13e
cmp cl, 0x2c
je 0x45a13e
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x45a126
test esi, esi
je 0x45a2c5
mov eax, dword [ebp - 0x10c]
sub eax, 0
je 0x45a26c
sub eax, 1
je 0x45a163
sub eax, 1
jne 0x45a2c5
xor ebx, ebx
cmp esi, 0x80
jae 0x45a2c5
push esi
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.0046e120
lea eax, [ebp - 0x84]
mov byte [ebp + esi - 0x84], bl
push 0x2f
push eax
call fcn.0046e800
mov esi, eax
add esp, 0x14
test esi, esi
je 0x45a1ae
lea ecx, [esi + 1]
push ecx
call fcn.0047dd7e
add esp, 4
mov byte [esi], 0
mov ebx, eax
cmp dword [ebp - 0x10c], 2
je 0x45a2c5
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 0
cmp ebx, 0x20
ja 0x45a2c5
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x110]
push 2
call esi
cmp eax, 1
jne 0x45a2c5
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push 2
call esi
cmp eax, 1
jne 0x45a2c5
test ebx, ebx
je 0x45a25b
cmp ebx, 0x20
je 0x45a25b
push dword [ebp - 0x114]
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x108]
mov esi, eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, esi
shl edx, cl
test edx, eax
jne 0x45a2c5
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x108]
sete al
jmp 0x45a2c1
cmp byte [edx + esi - 1], 0x2e
jne 0x45a278
sub esi, 1
je 0x45a27f
cmp byte [edx], 0x2e
jne 0x45a27f
inc edx
dec esi
cmp esi, ebx
jne 0x45a29a
push ebx
push dword [ebp - 0x110]
push edx
call fcn.00446d70
add esp, 0xc
test eax, eax
setne al
jmp 0x45a2c1
jae 0x45a2c5
mov eax, dword [ebp - 0x110]
sub eax, esi
add eax, ebx
cmp byte [eax - 1], 0x2e
jne 0x45a2bf
push esi
push eax
push edx
call fcn.00446d70
add esp, 0xc
test eax, eax
je 0x45a2bf
mov al, 1
jmp 0x45a2c1
xor al, al
test al, al
jne 0x45a248
mov al, byte [edi]
cmp al, 0x20
je 0x45a2cf
cmp al, 9
jne 0x45a2d2
inc edi
jmp 0x45a2c5
test al, al
je 0x45a2e7
cmp al, 0x2c
je 0x45a2f0
mov eax, dword [ebp - 0x11c]
mov byte [eax], 1
mov al, byte [edi]
jmp 0x45a2f8
cmp al, 0x2c
jne 0x45a2f8
nop dword [eax + eax]
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x45a2f0
test al, al
je 0x45a307
mov ebx, dword [ebp - 0x118]
jmp 0x45a106
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret