Function at 0x4014f0
Capabilities:
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x535008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x508]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x908]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
xor bl, bl
mov byte [ebp - 0x909], bl
call fcn.004019e0
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov dword [ebp - 0x914], eax
test eax, eax
je 0x40163b
lea ecx, [ebp - 0x910]
mov dword [ebp - 0x910], 0x400
push ecx
lea ecx, [ebp - 0x508]
push ecx
push 0
push 0
push str.LogDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015c9
lea ecx, [ebp - 0x508]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015a0
sub ecx, edx
je 0x4015c9
lea eax, [ebp - 0x508]
push eax
call edi
test eax, eax
jne 0x4015c7
lea ecx, [ebp - 0x508]
call fcn.00401870
test eax, eax
js 0x4015c9
mov bl, 1
lea eax, [ebp - 0x910]
mov dword [ebp - 0x910], 1
push eax
lea eax, [ebp - 0x909]
push eax
push 0
push 0
push str.LogDefaultCheck
push dword [ebp - 0x914]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ecx, byte [ebp - 0x909]
xor edx, edx
push dword [ebp - 0x914]
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x909], cl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40163b
cmp byte [ebp - 0x909], 0
lea ecx, [ebp - 0x508]
jne 0x401713
call fcn.00401a60
test al, al
jne 0x40163b
call fcn.00401ae0
push 1
push 0x23
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401657
sub ecx, edx
je 0x40173e
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
je 0x40173e
push str.GMCL
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4016ba
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
jne 0x4016ba
lea eax, [ebp - 0x108]
push eax
call edi
push str.CIUMon_Logs
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
call eax
test eax, eax
jne 0x4016f5
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
jne 0x4016f5
lea eax, [ebp - 0x108]
push eax
call edi
lea ecx, [ebp - 0x108]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401701
jmp 0x401845
lea eax, [ebp - 0x508]
sub esi, eax
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x401720
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051023c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x908]
call fcn.00401c00
lea ecx, [ebp - 0x908]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401752
sub ecx, edx
je 0x40185a
lea ecx, [ebp - 0x908]
mov edi, esi
mov eax, ecx
sub edi, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x401770
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
call ebx
push esi
call ebx
push 0x5177d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call eax
test eax, eax
jne 0x401845
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401845
lea ecx, [ebp - 0x908]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x4017c0
push esi
call ebx
push 0x5177d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x401845
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push esi
call edi
test eax, eax
jne 0x401845
lea eax, [ebp - 0x508]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
lea ecx, [ebp - 0x508]
mov edx, esi
mov eax, ecx
add esp, 8
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401816
push 0x5177d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x401845
push eax
push esi
call edi
test eax, eax
jne 0x401845
push esi
call ebx
mov ecx, esi
call fcn.00401b20
cmp byte [ebp - 0x909], 0
jne 0x40185a
call fcn.00401ae0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051023c
mov esp, ebp
pop ebp
ret