Function at 0x420c00
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x44e310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x6c0], ebx
call fcn.0042e710
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x443cc8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a175
push str.4177GameBox_Data
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a175
push 0x443cc8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a175
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.setconfig.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042a175
mov esi, dword [sym.imp.gbui.dll_GetPluginByName]
add esp, 0xc
push str.chk_CloseProgramAndExit
push ebx
call esi
push str.chk_AutoRun
push ebx
mov edi, eax
call esi
push str.edit_HotShowHide
push dword [ebp - 0x6c0]
mov ebx, eax
call esi
push str.edit_HotCloseProgram
push dword [ebp - 0x6c0]
call esi
push str.edit_CacheDir
push dword [ebp - 0x6c0]
call esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
push eax
push 0x104
push 0x47608c
call fcn.00429ebe
mov eax, dword [edi]
add esp, 0xc
push edi
call dword [eax + 0x198]
mov dword [0x476068], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x198]
mov dword [0x476084], eax
lea eax, [ebp - 0x20c]
push eax
cmp dword [0x476068], 0
mov esi, 0x449d54
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, esi
mov ebx, 0x443ee8
cmove eax, ebx
push eax
push str.CloseProgramAndExit
push str.config
call edi
cmp dword [0x476084], 0
lea eax, [ebp - 0x20c]
push eax
cmove esi, ebx
push esi
push str.AutoRun
push str.config
call edi
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x5f4], ax
lea eax, [ebp - 0x5f2]
push eax
call fcn.0042e710
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x52c], ax
lea eax, [ebp - 0x52a]
push eax
call fcn.0042e710
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
call fcn.0042e710
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call fcn.0042e710
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push eax
call fcn.0042e710
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x6bc], ax
lea eax, [ebp - 0x6ba]
push eax
call fcn.0042e710
add esp, 0x48
lea eax, [ebp - 0x5f4]
push dword [0x47606c]
push 0x443cc0
push eax
call fcn.00403170
push dword [0x476070]
lea eax, [ebp - 0x52c]
push 0x443cc0
push eax
call fcn.00403170
push dword [0x476074]
lea eax, [ebp - 0x2d4]
push 0x443cc0
push eax
call fcn.00403170
push dword [0x476078]
lea eax, [ebp - 0x39c]
push 0x443cc0
push eax
call fcn.00403170
push dword [0x47607c]
lea eax, [ebp - 0x464]
push 0x443cc0
push eax
call fcn.00403170
push dword [0x476080]
lea eax, [ebp - 0x6bc]
push 0x443cc0
push eax
call fcn.00403170
add esp, 0x48
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x5f4]
push eax
push str.HotShowHideA
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x52c]
push eax
push str.HotShowHideB
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x2d4]
push eax
push str.HotShowHideC
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x39c]
push eax
push str.HotCloseProgramA
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x464]
push eax
push str.HotCloseProgramB
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6bc]
push eax
push str.HotCloseProgramC
push str.config
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x47608c
push str.CachePath
push str.config
call edi
push 0x47608c
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x420f83
mov ecx, 0x47608c
call fcn.00422410
push dword [0x476084]
call fcn.00420aa0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret 4