Function at 0x10023e20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x148
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp + 0xd0], eax
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x34], 0
push 0x103
push 0
lea eax, [ebp - 0x33]
push eax
call fcn.1005ec70
add esp, 0xc
push 0
push 0x28
lea ecx, [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1002403b
mov edx, dword [ebp + 0xdc]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.100240e0
add esp, 8
test eax, eax
je 0x10023ea5
mov ecx, dword [ebp + 0xe4]
push ecx
push 0
mov edx, dword [ebp + 0xe0]
push edx
call fcn.1005ec70
add esp, 0xc
jmp 0x1002403b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ebp - 0x37], al
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x37], 0
jne 0x10023eb4
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x68]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
sub edx, 1
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x4c]
mov al, byte [edx]
mov byte [ebp - 0x38], al
add dword [ebp - 0x4c], 1
cmp byte [ebp - 0x38], 0
jne 0x10023ee7
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x60]
mov dword [ebp - 0x70], ecx
je 0x10023f3a
mov edx, dword [ebp - 0x48]
movsx eax, byte [ebp + edx - 0x34]
cmp eax, 0x5c
je 0x10023f3a
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0x104
jae 0x10023f22
jmp 0x10023f27
call fcn.1005a87f
mov edx, dword [ebp - 0x50]
mov byte [ebp + edx - 0x34], 0
mov eax, dword [ebp - 0x48]
sub eax, 1
mov dword [ebp - 0x48], eax
jmp 0x10023ed8
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x40]
mov cl, byte [eax]
mov byte [ebp - 0x35], cl
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x35], 0
jne 0x10023f50
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
je 0x10024023
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x44]
mov al, byte [edx]
mov byte [ebp - 0x36], al
add dword [ebp - 0x44], 1
cmp byte [ebp - 0x36], 0
jne 0x10023f80
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp + 0xe4]
jae 0x10024023
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xe4]
push ecx
mov edx, dword [ebp + 0xe0]
push edx
call fcn.1005b0fc
add esp, 0xc
mov eax, dword [ebp + 0xdc]
push eax
mov ecx, dword [ebp + 0xe4]
push ecx
mov edx, dword [ebp + 0xe0]
push edx
call fcn.1005b0fc
add esp, 0xc
push str.NTUSER.DAT
mov eax, dword [ebp + 0xe0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp + 0xe0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10024009
mov dword [ebp - 0x54], 1
jmp 0x10024021
mov edx, dword [ebp + 0xe4]
push edx
push 0
mov eax, dword [ebp + 0xe0]
push eax
call fcn.1005ec70
add esp, 0xc
jmp 0x1002403b
mov ecx, dword [ebp + 0xe4]
push ecx
push 0
mov edx, dword [ebp + 0xe0]
push edx
call fcn.1005ec70
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xd0]
xor ecx, ebp
call fcn.1005c9a6
add ebp, 0xd4
mov esp, ebp
pop ebp
ret