Function at 0x45bb20
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x114
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x120]
push ebx
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x124]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov byte [eax], 0
test edi, edi
je 0x45bdb7
mov bl, byte [edi]
test bl, bl
je 0x45bdb7
push ebp
test esi, esi
je 0x45bdb3
cmp byte [esi], 0
je 0x45bdb3
xor eax, eax
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, 0x5525cc
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45bba8
test dl, dl
je 0x45bba4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45bba8
add eax, 2
add ecx, 2
test dl, dl
jne 0x45bb88
xor eax, eax
jmp 0x45bbad
sbb eax, eax
or eax, 1
test eax, eax
je 0x45bd98
cmp bl, 0x5b
jne 0x45bc0e
push 0x5d
push edi
call fcn.004efd70
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45bdb3
inc edi
sub ebp, edi
cmp ebp, 0x80
jae 0x45bdb3
push ebp
lea eax, [esp + 0xa4]
push edi
push eax
call fcn.004effe0
lea edx, [esp + 0xac]
mov byte [esp + ebp + 0xac], 0
mov ebx, 2
mov dword [esp + 0x1c], edx
add esp, 0xc
mov dword [esp + 0x14], ebx
jmp 0x45bc44
mov ebp, edi
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x45bc13
lea eax, [esp + 0x1c]
sub ebp, ecx
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x45bc38
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x45bc42
cmp byte [edi + ebp - 1], 0x2e
jne 0x45bc40
dec ebp
xor ebx, ebx
mov edx, edi
cmp byte [esi], 0
je 0x45bdb3
nop dword [eax]
mov al, byte [esi]
xor edi, edi
test al, al
je 0x45bc68
cmp al, 0x20
je 0x45bc60
cmp al, 9
jne 0x45bc68
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45bc58
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x45bd60
cmp al, 0x20
je 0x45bc89
cmp al, 9
je 0x45bc89
cmp al, 0x2c
je 0x45bc89
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x45bc74
test edi, edi
je 0x45bd60
test ebx, ebx
je 0x45bd0a
lea eax, [ebx - 1]
cmp eax, 1
ja 0x45bd60
xor ebx, ebx
cmp edi, 0x80
jae 0x45bd60
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.004effe0
lea eax, [esp + 0x2c]
mov byte [esp + edi + 0x2c], bl
push 0x2f
push eax
call fcn.004efd70
mov edi, eax
add esp, 0x14
test edi, edi
je 0x45bce5
lea ecx, [edi + 1]
push ecx
call fcn.004fbeca
add esp, 4
mov byte [edi], 0
mov ebx, eax
cmp dword [esp + 0x14], 2
lea eax, [esp + 0x20]
push ebx
push eax
push dword [esp + 0x18]
jne 0x45bd00
call fcn.0045be90
add esp, 0xc
jmp 0x45bd59
call fcn.0045bde0
add esp, 0xc
jmp 0x45bd59
cmp byte [ecx + edi - 1], 0x2e
jne 0x45bd12
dec edi
test edi, edi
je 0x45bd1d
cmp byte [ecx], 0x2e
jne 0x45bd1d
inc ecx
dec edi
cmp edi, ebp
jne 0x45bd2e
push ebp
push edx
push ecx
call fcn.00436920
add esp, 0xc
jmp 0x45bd54
jae 0x45bd60
mov eax, edx
sub eax, edi
add eax, ebp
cmp byte [eax - 1], 0x2e
jne 0x45bd52
push edi
push eax
push ecx
call fcn.00436920
add esp, 0xc
test eax, eax
je 0x45bd52
mov eax, 1
jmp 0x45bd54
xor eax, eax
test eax, eax
setne al
test al, al
jne 0x45bd98
nop dword [eax]
mov al, byte [esi]
cmp al, 0x20
je 0x45bd6a
cmp al, 9
jne 0x45bd6d
inc esi
jmp 0x45bd60
mov al, byte [esi]
test al, al
je 0x45bd86
cmp al, 0x2c
je 0x45bd80
mov eax, dword [esp + 0x18]
mov byte [eax], 1
jmp 0x45bd86
inc esi
cmp byte [esi], 0x2c
je 0x45bd80
cmp byte [esi], 0
je 0x45bdb3
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
jmp 0x45bc50
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0046ec22
add esp, 0x114
ret
xor al, al
jmp 0x45bd9a
mov ecx, dword [esp + 0x11c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x114
ret