Function at 0x4cb480
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d43f
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.0040baa0
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
shr ecx, 0x10
cmp ecx, 0x300
jne 0x4cb6e4
mov eax, 0x187c
cmp si, ax
jne 0x4cb6e4
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00544020
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00544020
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x104
push 0xd
push 0x187c
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.0040baa0
mov esi, dword [eax + 0x234d8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cb63c
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x704]
call fcn.00403ef0
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004ba5c0
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
mov dword [ebp - 4], eax
mov ecx, edi
call fcn.004b71c0
test al, al
je 0x4cb613
push str.Please_restart_Notepad_to_take_effect.
lea ecx, [ebp - 0x450]
call fcn.004029a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x450]
push eax
push str.cloud_restart_warning
lea eax, [ebp - 0x468]
mov ecx, esi
push eax
call fcn.0045ff80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
push eax
call fcn.00403e70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
call fcn.004038c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.004038c0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4cb628
lea eax, [ebp - 0x438]
push eax
push 0x1875
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x4cb6c8
push 0
push 0
push 0xf0
push 0x187b
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 1
sete al
test al, al
je 0x4cb6da
push str.Invalid_path.
lea ecx, [ebp - 0x450]
call fcn.004029a0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x450]
push eax
push str.cloud_invalid_warning
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.0045ff80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x450]
call fcn.004038c0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4cb6b2
lea eax, [ebp - 0x438]
push eax
push 0x1875
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, edi
call fcn.004ba380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.004038c0
mov eax, 1
jmp 0x4cba6c
mov eax, dword [ebp + 0xc]
sub eax, 0x110
je 0x4cb940
sub eax, 1
jne 0x4cba6a
call fcn.0040baa0
mov eax, dword [eax + 0x234d8]
mov dword [ebp - 0x46c], eax
sub esi, 0x1877
je 0x4cb823
sub esi, 4
je 0x4cb799
sub esi, 2
jne 0x4cba6a
push str.Select_a_folder_from_to_where_Notepad_reads_writes_its_settings
lea ecx, [ebp - 0x450]
call fcn.004029a0
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x450]
mov ecx, dword [ebp - 0x46c]
push eax
push str.cloud_select_folder
lea eax, [ebp - 0x438]
push eax
call fcn.0045ff80
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x450]
call fcn.004038c0
push esi
push 0x187c
lea eax, [ebp - 0x438]
push eax
push dword [ebx + 0xc]
lea eax, [ebp - 0x468]
push eax
call fcn.00425040
add esp, 0x14
lea ecx, [ebp - 0x468]
call fcn.004038c0
jmp 0x4cba58
push str.Invalid_path.
lea ecx, [ebp - 0x450]
call fcn.004029a0
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x450]
mov ecx, dword [ebp - 0x46c]
push eax
push str.cloud_invalid_warning
lea eax, [ebp - 0x438]
push eax
call fcn.0045ff80
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x450]
call fcn.004038c0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4cb7f2
lea eax, [ebp - 0x438]
push eax
push 0x1875
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x187c
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
jmp 0x4cba4b
lea esi, [edi + 0x704]
push 0x5883b8
mov ecx, esi
call fcn.00403ef0
mov ecx, edi
call fcn.004ba380
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
mov dword [ebp - 4], 7
mov ecx, edi
call fcn.004b71c0
test al, al
je 0x4cb8df
push str.Please_restart_Notepad_to_take_effect.
lea ecx, [ebp - 0x450]
call fcn.004029a0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x450]
mov ecx, dword [ebp - 0x46c]
push eax
push str.cloud_restart_warning
lea eax, [ebp - 0x468]
push eax
call fcn.0045ff80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x438]
push eax
call fcn.00403e70
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x468]
call fcn.004038c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x450]
call fcn.004038c0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4cb8f4
lea eax, [ebp - 0x438]
push eax
push 0x1875
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp dword [esi + 0x14], 8
jb 0x4cb90b
mov esi, dword [esi]
push esi
push 0
push 0xc
push 0x187c
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x187c
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
jmp 0x4cba4b
push 0x5883b8
lea ecx, [ebp - 0x438]
call fcn.004029a0
mov dword [ebp - 4], 6
lea esi, [edi + 0x704]
cmp dword [esi + 0x14], 8
jb 0x4cb967
mov eax, dword [esi]
jmp 0x4cb969
mov eax, esi
push 0
push 0x5883b8
push dword [esi + 0x10]
push eax
call fcn.00406240
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4cb9a9
cmp dword [esi + 0x14], 8
jb 0x4cb98c
mov ecx, dword [esi]
jmp 0x4cb98e
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cb9a9
push str.Invalid_path
lea ecx, [ebp - 0x438]
call fcn.00403ef0
cmp dword [ebp - 0x424], 8
mov eax, dword [ebp - 0x438]
jae 0x4cb9be
lea eax, [ebp - 0x438]
push eax
push 0x1875
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor eax, eax
test edi, edi
push 0
sete al
push eax
push 0xf1
push 0x1877
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor eax, eax
test edi, edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
setne al
push eax
push 0xf1
push 0x187b
push dword [ebx + 0xc]
mov dword [ebp - 0x46c], eax
call edi
cmp dword [esi + 0x14], 8
jb 0x4cba17
mov esi, dword [esi]
push esi
push 0
push 0xc
push 0x187c
push dword [ebx + 0xc]
call edi
push dword [ebp - 0x46c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x187c
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push dword [ebp - 0x46c]
push 0x187d
push dword [ebx + 0xc]
call edi
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.004038c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x10