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

Disassembly:
push 0xffffffffffffffff
push 0x47d8e1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
push str._kkam__CATProfile::CreateCacheFolder___
mov dword [esp + 0x20], 2
call fcn.00403170
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x4a643c
call edx
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x104
sub eax, edi
or eax, ecx
mov dword [esp + 0xc], 1
jge 0x45efd0
push edi
mov ecx, esi
call fcn.00401e80
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x45efe1
push 0x80070057
call fcn.00401100
push 1
push 0x23
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
xor edx, edx
push eax
push edx
mov word [ecx + 0x208], dx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45f1b5
mov eax, dword [esi]
push eax
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_SUCCESS_:__s
call fcn.00403170
mov eax, dword [esi]
mov ecx, dword [eax - 8]
add esp, 8
test eax, eax
je 0x45f02b
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x45efd7
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x45efd7
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push 8
mov word [ecx + eax*2], dx
push str.Samsung
mov ecx, esi
call fcn.004044d0
mov eax, dword [esi]
push eax
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 8
push 0
push eax
call edi
push 0xe
push str.DeviceProfile
mov ecx, esi
call fcn.004044d0
mov ecx, dword [esi]
push ecx
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
mov eax, dword [esi]
add esp, 8
push 0
push eax
call edi
mov edx, dword [esi]
push edx
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
add esp, 8
push 6
push str.Cache
mov ecx, esi
call fcn.004044d0
mov eax, dword [esi]
push eax
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
mov eax, dword [esi]
add esp, 8
push 0
push eax
call edi
mov ecx, dword [esi]
push ecx
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
mov edx, dword [esp + 0x30]
push edx
push 0x491d74
push esi
call fcn.00408b40
mov eax, dword [esi]
add esp, 0x14
push 0
push eax
call edi
push 0x483ac0
push 0x481b28
lea ecx, [esp + 0x34]
call fcn.00407fd0
mov eax, dword [esi]
push eax
push str._kkam__CATProfile::CreateCacheFolder_SHGetSpecialFolderPath_:__s
call fcn.00403170
mov ecx, dword [esp + 0x34]
push ecx
push 0x491d74
push esi
call fcn.00408b40
mov eax, dword [esi]
add esp, 0x14
push 0
push eax
call edi
cmp dword [esp + 0x30], 1
jne 0x45f1b5
mov edx, dword [esp + 0x2c]
cmp dword [edx - 0xc], 0
je 0x45f1b5
mov eax, dword [esp + 0x28]
push 0x480de0
push eax
lea ecx, [esp + 0x34]
call fcn.00407fd0
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
jle 0x45f19b
push 0x2f
push eax
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
je 0x45f19b
sub eax, dword [esp + 0x2c]
sar eax, 1
test eax, eax
jle 0x45f19b
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.00407d30
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 3
call fcn.00404450
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call fcn.004023d0
mov edx, dword [esp + 0x2c]
push edx
push 0x491d74
push esi
call fcn.00408b40
mov eax, dword [esi]
add esp, 0xc
push 0
push eax
call edi
push 0x491d20
call fcn.00403170
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f1e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f20c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret