Function at 0x417170
Capabilities:
Create directory
Get common file path
Get startup folder
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
mov eax, dword [0x46b378]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
lea ecx, [esi + 0x5c0]
push ebx
mov dword [esp + 0x310], eax
mov dword [esp + 0x2c], 3
call fcn.0040ac70
lea ecx, [esi + 0x5c]
call fcn.004036e0
lea ecx, [esp + 0x24]
mov edi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
mov eax, dword [edi]
push ecx
lea edx, [ebx + 0x3a]
push edx
mov ecx, edi
mov dword [esp + 0x328], 0
call dword [eax + 0x14]
push eax
lea ecx, [esp + 0x34]
push str._s__s__I64d_
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x18
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esi + 0x44]
push eax
call fcn.0040baf0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
lea ecx, [esi + 0x5c]
call fcn.00403710
mov edx, dword [ebx]
xor eax, eax
mov ecx, 0x16
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push 0x14
lea ecx, [ebx + 8]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x60], eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
push 0x21
lea eax, [esp + 0x89]
lea edi, [esi + 0x5c0]
push eax
mov ecx, edi
call fcn.0040ac00
mov cl, byte [edi]
mov dl, byte [esi + 0x5c1]
mov byte [esp + 0x82], cl
xor eax, eax
mov ecx, 0x16
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x88], dl
mov edx, dword [esp + 0x54]
push ecx
lea edi, [esi + 0x108]
push edx
mov ecx, edi
call fcn.00408260
test eax, eax
je 0x4172d6
lea ecx, [esi + 0x70]
call fcn.0041d7f0
cmp eax, 3
je 0x4172f5
mov eax, dword [ebp + 8]
test eax, eax
je 0x4172cb
mov byte [esp + 0x83], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x54]
push ecx
jmp 0x4172ee
mov eax, dword [ebp + 8]
test eax, eax
je 0x4172e5
mov byte [esp + 0x83], 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call fcn.00409830
xor ecx, ecx
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov dword [esp + 0x45], ecx
push 0x21
lea edx, [esp + 0x30]
mov dword [esp + 0x4d], ecx
push edx
lea ecx, [esi + 0x5c0]
mov byte [esp + 0x34], 0
call fcn.0040abd0
push ebx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00416a20
test eax, eax
jne 0x417347
mov dword [esp + 0x28], 5
mov eax, dword [esi + 0xb74]
xor edi, edi
cmp eax, edi
je 0x417360
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xb74], edi
mov eax, dword [esi + 0xb70]
cmp eax, edi
je 0x417377
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb70], edi
mov ecx, dword [esi + 0x44]
cmp ecx, edi
je 0x417385
call fcn.0040baf0
jmp 0x417387
xor eax, eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00413830
push 0x456e0c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x320], 1
call fcn.00412f10
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x24]
push str._sUsers
push edx
mov byte [esp + 0x328], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x31c], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push edi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov edi, dword [sym.imp.MSVCR71.dll__waccess]
push eax
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x417418
push 0
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x456e0c
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x320], 3
call fcn.00412f10
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str._sUsers_I64d
push ecx
mov byte [esp + 0x330], 4
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x31c], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x4174ac
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x456e0c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov edx, dword [esp + 0x1c]
push 0x458e4c
push edx
lea eax, [esp + 0x14]
push 0x456a30
push eax
mov byte [esp + 0x32c], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
add esp, 8
cmp eax, 0xffffffff
je 0x417503
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417600
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x458e48
push str.UseKplayer
push str.Setting
call fcn.0041f5e0
add esp, 0x10
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x458e18
push str.HotKey
push str.System
call fcn.0041f5e0
add esp, 0x10
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x458e48
push str.AutoInOutMsg
push str.UserSet
call fcn.0041f5e0
add esp, 0x10
push 0x456e0c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x320], 6
mov dword [esp + 0x18], 0
call fcn.0041f6c0
push 1
lea edx, [esp + 0x1c]
push 0xa
push edx
call fcn.0041f690
push 1
lea eax, [esp + 0x28]
push 0xb
push eax
call fcn.0041f690
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push 0x458d44
push edx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x28
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push str.state
push str.UserSet
call fcn.0041f5e0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x31c], 5
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push 0x456e0c
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov word [esp + 0x100], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x102]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x31c], 7
stosw word es:[edi], ax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x104
lea eax, [esp + 0x108]
push eax
push 0x456e0c
push str.SavePath
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [sym.imp.MSVCR71.dll__waccess]
lea ecx, [esp + 0x100]
push 0
push ecx
call edi
add esp, 8
push 0
push 5
lea edx, [esp + 0x108]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x1c]
push 0x458d9c
push ecx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
add esp, 8
cmp eax, 0xffffffff
jne 0x4176ce
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push str.SavePath
push str.System
call fcn.0041f5e0
mov eax, dword [esi + 0x1c1c]
add esp, 0x10
test eax, eax
je 0x417722
mov ecx, dword [esi + 0x44]
mov edi, dword [eax]
call fcn.0040baf0
mov edx, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x1c1c]
push eax
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov dword [esi + 0x1c20], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x314]
mov eax, dword [esp + 0x28]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30c]
call fcn.004225d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc