Function at 0x10099200
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x13c
mov eax, dword [0x1018e4ac]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x148]
push ebx
push ebp
mov ebp, dword [esp + 0x148]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov byte [eax], 0
push esi
push edi
mov edi, dword [esp + 0x154]
test ebp, ebp
je 0x100995ed
mov bl, byte [ebp]
test bl, bl
je 0x100995ed
test edi, edi
je 0x100995ed
cmp byte [edi], 0
je 0x100995ed
mov dword [esp + 0x14], 0
mov ecx, edi
mov eax, 0x1017fb84
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10099290
test dl, dl
je 0x1009928c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10099290
add eax, 2
add ecx, 2
test dl, dl
jne 0x10099270
xor eax, eax
jmp 0x10099295
sbb eax, eax
or eax, 1
test eax, eax
je 0x10099549
cmp bl, 0x5b
jne 0x100992f9
push 0x5d
push ebp
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100995ed
inc ebp
sub ebx, ebp
mov dword [esp + 0x1c], ebx
cmp ebx, 0x80
jae 0x100995ed
push ebx
lea eax, [esp + 0xcc]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esp + 0xd4]
mov byte [esp + ebx + 0xd4], 0
add esp, 0xc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 2
jmp 0x10099332
mov ebx, ebp
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10099300
lea eax, [esp + 0x10]
sub ebx, ecx
push eax
push ebp
push 2
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x10099326
mov dword [esp + 0x14], eax
jmp 0x10099332
cmp byte [ebx + ebp - 1], 0x2e
jne 0x10099332
dec ebx
mov dword [esp + 0x1c], ebx
mov al, byte [edi]
test al, al
je 0x100995ed
xor esi, esi
nop
cmp al, 0x20
je 0x1009934a
mov cl, al
cmp al, 9
jne 0x10099354
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x10099340
mov edx, edi
test cl, cl
je 0x100995b0
nop
cmp cl, 0x20
je 0x10099378
cmp cl, 9
je 0x10099378
cmp cl, 0x2c
je 0x10099378
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x10099360
test esi, esi
je 0x100995b0
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x1009955d
sub eax, 1
je 0x1009939b
sub eax, 1
jne 0x100995b0
xor ebx, ebx
cmp esi, 0x80
jae 0x100995b0
push esi
push edx
lea eax, [esp + 0x50]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0x54]
mov byte [esp + esi + 0x54], bl
push 0x2f
push eax
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100993df
lea ecx, [esi + 1]
push ecx
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 4
mov byte [esi], 0
mov ebx, eax
cmp dword [esp + 0x14], 2
jne 0x100994d1
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
test ebx, ebx
mov eax, 0x80
cmove ebx, eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x24]
mov ebp, ebx
and ebx, 7
push 0x17
shr ebp, 3
call esi
cmp eax, 1
jne 0x100995b0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x17
call esi
cmp eax, 1
jne 0x100995b0
cmp ebp, 0x10
ja 0x100995b0
jne 0x10099442
test ebx, ebx
jne 0x100995b0
test ebp, ebp
je 0x100994a8
mov esi, ebp
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
sub esi, 4
jb 0x10099466
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1009946b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10099455
cmp esi, 0xfffffffc
je 0x100994a8
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100995b0
cmp esi, 0xfffffffd
je 0x100994a8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100995b0
cmp esi, 0xfffffffe
je 0x100994a8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100995b0
cmp esi, 0xffffffff
je 0x100994a8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100995b0
test ebx, ebx
je 0x10099549
movzx eax, byte [esp + ebp + 0x38]
mov ecx, 8
movzx edx, byte [esp + ebp + 0x28]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
jmp 0x100995ab
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
cmp ebx, 0x20
ja 0x100995b0
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_pton]
push 2
call ebp
cmp eax, 1
jne 0x100995b0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
push 2
call ebp
cmp eax, 1
jne 0x100995b0
test ebx, ebx
je 0x10099550
cmp ebx, 0x20
je 0x10099550
push dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
call ebp
push dword [esp + 0x10]
mov esi, eax
call ebp
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, esi
shl edx, cl
test edx, eax
jne 0x100995b0
mov al, 1
jmp 0x100995ef
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
sete al
jmp 0x100995a9
cmp byte [edx + esi - 1], 0x2e
jne 0x10099569
sub esi, 1
je 0x10099570
cmp byte [edx], 0x2e
jne 0x10099570
inc edx
dec esi
cmp esi, ebx
jne 0x10099586
push ebx
push ebp
push edx
call fcn.100723c0
add esp, 0xc
test eax, eax
setne al
jmp 0x100995a9
jae 0x100995b0
mov eax, ebp
sub eax, esi
add eax, ebx
cmp byte [eax - 1], 0x2e
jne 0x100995a7
push esi
push eax
push edx
call fcn.100723c0
add esp, 0xc
test eax, eax
je 0x100995a7
mov al, 1
jmp 0x100995a9
xor al, al
test al, al
jne 0x10099549
nop dword [eax]
mov al, byte [edi]
cmp al, 0x20
je 0x100995ba
cmp al, 9
jne 0x100995bd
inc edi
jmp 0x100995b0
test al, al
je 0x100995d0
cmp al, 0x2c
je 0x100995d4
mov eax, dword [esp + 0x24]
mov byte [eax], 1
mov al, byte [edi]
jmp 0x100995dc
cmp al, 0x2c
jne 0x100995dc
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x100995d4
test al, al
je 0x100995ed
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
jmp 0x1009933c
xor al, al
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013ad45
add esp, 0x13c
ret