Function at 0x10024d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
mov eax, dword [0x10050050]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
call fcn.10025030
mov eax, dword [0x107cb6b0]
mov ecx, dword [eax + 0x4070]
push ecx
push eax
push str._1__pim_config_p__wc_d
push str.LoadAllWordLibraries2
call fcn.10014390
push 0x100495b4
push str.LoadAllWordLibraries2
call fcn.10014390
mov edx, dword [0x107cb6b0]
add esp, 0x18
cmp dword [edx + 0x4070], 0
jne 0x10024d86
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
push 0x100459c8
push str.LoadAllWordLibraries2
call fcn.10014390
push 0x84
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1002a830
mov edi, dword [0x107cb6b0]
add esp, 0x14
lea esi, [esp + 0x2a0]
call fcn.100150d0
test eax, eax
je 0x10024dd0
lea eax, [esp + 0x98]
lea ecx, [edi + 0x70]
mov edx, esi
call fcn.10015110
push 0x100495c8
push str.LoadAllWordLibraries2
call fcn.10014390
add esp, 8
lea esi, [esp + 0x98]
call fcn.10022bd0
mov ebx, dword [0x107cb6b0]
mov esi, dword [ebx + 0x4070]
mov edi, 1
mov dword [esp + 0x10], edi
cmp esi, edi
jle 0x10024e5c
lea ecx, [ebx + 0x270]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, str.kuaodata2.res
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10024e46
test dx, dx
je 0x10024e42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10024e46
add eax, 4
add ecx, 4
test dx, dx
jne 0x10024e20
xor eax, eax
jmp 0x10024e4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10024e87
add dword [esp + 0xc], 0x200
inc edi
cmp edi, esi
jl 0x10024e11
cmp esi, 0x20
jge 0x10024e87
push str.kuaodata2.res
shl esi, 9
lea edx, [esi + ebx + 0x70]
push 0x100
push edx
call fcn.10026c57
mov ebx, dword [0x107cb6b0]
add esp, 0xc
inc dword [ebx + 0x4070]
mov eax, 1
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x4070], eax
jle 0x10024f9e
mov edi, 0x200
lea eax, [esp + 0x2a0]
push eax
push 0
push 0
push 0x1a
lea esi, [edi + ebx + 0x70]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0
call ebx
test eax, eax
je 0x10024edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetFolderPath
push str.GetAllUserAppDirectory
call fcn.10014390
add esp, 0xc
jmp 0x10024ef1
lea eax, [esp + 0x98]
mov ecx, esi
lea edx, [esp + 0x2a0]
call fcn.10015110
push 1
push 0x40000
lea ecx, [esp + 0xa0]
call fcn.100227f0
add esp, 8
test eax, eax
jns 0x10024f75
mov ecx, dword [0x107cb6b0]
lea edx, [esp + 0x2a0]
push edx
push 0
push 0
push 0x1a
push 0
lea esi, [edi + ecx + 0x70]
call ebx
test eax, eax
je 0x10024f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetFolderPath
push str.GetUserAppDirectory
call fcn.10014390
add esp, 0xc
jmp 0x10024f5b
lea eax, [esp + 0x98]
mov ecx, esi
lea edx, [esp + 0x2a0]
call fcn.10015110
push 1
push 0x40000
lea ecx, [esp + 0xa0]
call fcn.100227f0
add esp, 8
test eax, eax
js 0x10024f7d
mov dword [esp + eax*4 + 0x10], 1
mov eax, dword [esp + 0xc]
mov ebx, dword [0x107cb6b0]
inc eax
add edi, 0x200
mov dword [esp + 0xc], eax
cmp eax, dword [ebx + 0x4070]
jl 0x10024ea1
mov edx, dword [0x10755018]
xor eax, eax
lea ecx, [edx + 0x11eac]
lea esi, [edx + 0x9fa8]
cmp word [esi - 0x200], 0
je 0x10024fc8
xor edx, edx
cmp dword [esp + eax*4 + 0x10], edx
sete dl
mov dword [ecx - 4], edx
cmp word [esi], 0
je 0x10024fd9
xor edx, edx
cmp dword [esp + eax*4 + 0x14], edx
sete dl
mov dword [ecx], edx
cmp word [esi + 0x200], 0
je 0x10024fef
xor edx, edx
cmp dword [esp + eax*4 + 0x18], edx
sete dl
mov dword [ecx + 4], edx
cmp word [esi + 0x400], 0
je 0x10025005
xor edx, edx
cmp dword [esp + eax*4 + 0x1c], edx
sete dl
mov dword [ecx + 8], edx
add eax, 4
add esi, 0x800
add ecx, 0x10
cmp eax, 0x20
jl 0x10024fb2
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1002656f
mov esp, ebp
pop ebp
ret