Function at 0x100726a0
Capabilities:
Create directory
Create thread
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1010d024]
xor eax, esp
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x100728ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10072916
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov dword [0x1010d710], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [esp + 0x24], 0
lea eax, [esp + 0x20]
mov dword [0x1010d718], edi
push eax
push 0x100725d0
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x1007272a
push edi
push str.FindWindowById
push str._s:_handle_window_by_process_id__lu_not_found._n
call fcn.100afcd0
mov ecx, dword [esp + 0x30]
add esp, 0xc
cmp dword [0x1010d710], 0
mov dword [0x1010d714], ecx
je 0x10072916
cmp dword [0x1010d718], 0
je 0x10072916
test ecx, ecx
je 0x10072916
push str.appdata
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
add esp, 0xc
test eax, eax
jne 0x10072904
mov edx, dword [esp + 0x28]
test edx, edx
je 0x10072904
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10072793
sub ecx, esi
push ecx
push edx
mov ecx, 0x1010d734
call fcn.1006f5d0
push 7
push str.0XD3F_
mov ecx, 0x1010d734
call fcn.100440b0
cmp dword [0x1010d748], 0x10
mov eax, 0x1010d734
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmovae eax, dword [0x1010d734]
push 0
push eax
call esi
cmp dword [0x1010d748], 0x10
mov eax, 0x1010d734
push dword [0x1010d744]
cmovae eax, dword [0x1010d734]
mov ecx, 0x1010d71c
push eax
call fcn.1006f5d0
push 8
push str.configs_
mov ecx, 0x1010d71c
call fcn.100440b0
cmp dword [0x1010d730], 0x10
mov eax, 0x1010d71c
push 0
cmovae eax, dword [0x1010d71c]
push eax
call esi
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [0x1010d744]
mov eax, 0x7fffffff
sub eax, ecx
add esp, 4
cmp eax, 9
jb 0x1007291f
cmp dword [0x1010d748], 0x10
mov eax, 0x1010d734
push 9
cmovae eax, dword [0x1010d734]
push str.debug.log
push ecx
push eax
push ecx
push dword [esp + 0x34]
lea ecx, [esp + 0x20]
call fcn.1006ff20
lea eax, [esp + 8]
mov ecx, 0x1010d74c
push eax
call fcn.1005d6d0
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10
jb 0x100728b8
mov edx, dword [esp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100728ae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100728ae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100bd366
add esp, 8
push dword [0x1010d718]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0x10072640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100bceb5
mov esp, ebp
pop ebp
ret 0xc
push str.GetSettingsPath
push str.___s:_failed_to_get_settings_path._n
call fcn.100afcd0
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.100442e0
int3