Function at 0x491940
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0x1b8], eax
mov eax, dword [0x4edd38]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xb86
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
cmp esi, ebx
je 0x4919b8
mov edi, dword [sym.imp.USER32.dll_CopyAcceleratorTableA]
push ebx
push ebx
push esi
call edi
mov dword [esp + 0x18], eax
cmp eax, ebx
jbe 0x4919b8
xor ecx, ecx
mov ebp, eax
mov edx, 6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dbdc
add esp, 4
push ebp
push eax
push esi
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xbc]
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.TunerPro_Files_
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [esp + 0x10]
mov ecx, 0x104
lea edx, [esp + 0xbc]
call fcn.0049ee50
test eax, eax
js 0x491a22
mov ecx, dword [esp + 0x10]
mov eax, 0x104
sub eax, ecx
lea ecx, [esp + ecx + 0xbc]
mov edx, str.TPCustomKeys.dat
call fcn.0049ec80
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0xc4]
mov dword [esp + 0x18], ebx
call fcn.00491710
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push esi
push edx
mov edx, dword [esp + 0x2c]
call fcn.00474630
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x491a95
xor ecx, ecx
mov edx, 6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dbdc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 4
push ebx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.00474630
add esp, 0x10
mov ebx, eax
xor esi, esi
lea ecx, [esp + 0x24]
xor eax, eax
lea ecx, [ecx]
cmp byte [eax + 0x4e4ae8], 0
je 0x491ac9
cmp byte [eax + 0x4e4a84], 0
je 0x491ac9
mov edx, dword [eax + 0x4e4fec]
mov dword [ecx], edx
mov dx, word [eax + 0x4e4ff0]
mov word [ecx + 4], dx
inc esi
add ecx, 6
cmp byte [eax + 0x4e5056], 0
je 0x491af2
cmp byte [eax + 0x4e4ff2], 0
je 0x491af2
mov edx, dword [eax + 0x4e555a]
mov dword [ecx], edx
mov dx, word [eax + 0x4e555e]
mov word [ecx + 4], dx
inc esi
add ecx, 6
cmp byte [eax + 0x4e55c4], 0
je 0x491b1b
cmp byte [eax + 0x4e5560], 0
je 0x491b1b
mov edx, dword [eax + 0x4e5ac8]
mov dword [ecx], edx
mov dx, word [eax + 0x4e5acc]
mov word [ecx + 4], dx
inc esi
add ecx, 6
cmp byte [eax + 0x4e5b32], 0
je 0x491b44
cmp byte [eax + 0x4e5ace], 0
je 0x491b44
mov edx, dword [eax + 0x4e6036]
mov dword [ecx], edx
mov dx, word [eax + 0x4e603a]
mov word [ecx + 4], dx
inc esi
add ecx, 6
cmp byte [eax + 0x4e60a0], 0
je 0x491b6d
cmp byte [eax + 0x4e603c], 0
je 0x491b6d
mov edx, dword [eax + 0x4e65a4]
mov dword [ecx], edx
mov dx, word [eax + 0x4e65a8]
mov word [ecx + 4], dx
inc esi
add ecx, 6
add eax, 0x1b26
cmp eax, 0x87be
jb 0x491aa0
mov edx, dword [esp + 0x10]
push 0
push 0
lea eax, [esp + 0x2c]
push esi
push eax
mov ecx, ebx
call fcn.00474630
mov edi, eax
add esp, 0x10
xor ebp, ebp
test edi, edi
je 0x491bee
xor ecx, ecx
mov edx, 6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042dbdc
add esp, 4
mov ebp, eax
push edi
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
mov edx, esi
call fcn.00474630
add esp, 0x10
mov ebx, eax
test ebp, ebp
je 0x491bf2
push edi
push ebp
mov edx, dword [0x4ee004]
mov ecx, 0x4ede80
call fcn.00491810
mov edi, dword [esp + 0x1c]
jmp 0x491c18
mov esi, dword [esp + 0x10]
test esi, esi
je 0x491bfa
push ebx
push esi
jmp 0x491bd8
mov edi, dword [esp + 0x14]
test edi, edi
je 0x491c1b
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4ee004]
push ecx
push edi
mov ecx, 0x4ede80
call fcn.00491810
add esp, 8
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x491c2f
push eax
call esi
add esp, 4
test edi, edi
je 0x491c39
push edi
call esi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x491c47
push eax
call esi
add esp, 4
test ebp, ebp
je 0x491c51
push ebp
call esi
add esp, 4
mov ecx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dbe7
add esp, 0x1bc
ret