Function at 0x10057d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101295e2
mov eax, dword fs:[0]
push eax
sub esp, 0x5c0
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x5bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x5d4]
mov dword fs:[0], eax
test byte [0x1016fb24], 1
mov eax, dword [esp + 0x5e4]
mov esi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jne 0x10057d83
or dword [0x1016fb24], 1
mov ecx, 0x1016fa00
call fcn.1005f360
push 0x10131a00
call fcn.100d0710
add esp, 4
cmp byte [0x1016cc99], 0
je 0x10057dae
cmp byte [0x1016fb1c], 0
mov eax, 0x1016fa0c
jne 0x10057d9f
mov eax, dword [0x1016fa08]
add eax, 4
mov edx, esi
call fcn.10062710
jmp 0x1005819c
lea edi, [esp + 0x140]
mov byte [0x1016cc99], 1
call fcn.10062500
xor ebp, ebp
lea ecx, [esp + 0x388]
mov dword [esp + 0x5dc], ebp
call fcn.1005f360
mov byte [esp + 0x5dc], 1
cmp dword [0x1016fb20], ebp
je 0x10057dec
mov dword [0x1016fb20], ebp
mov ecx, 1
mov esi, 0x1016fa08
mov dword [0x1016fa04], ebp
call fcn.100632f0
cmp byte [0x1016fb1c], 0
mov eax, 0x1016fa0c
jne 0x10057e14
mov eax, dword [0x1016fa08]
xor ecx, ecx
mov word [eax + 4], cx
mov ebx, 0x105
mov ecx, ebx
lea esi, [esp + 0x148]
mov dword [esp + 0x260], ebx
call fcn.100632f0
cmp byte [esp + 0x25c], 0
lea eax, [esp + 0x14c]
jne 0x10057e4c
mov eax, dword [esp + 0x148]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push ebp
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x10057f3f
lea ecx, [esp + 0x140]
call fcn.100626a0
mov ecx, ebx
lea esi, [esp + 0x148]
mov dword [esp + 0x260], ebx
call fcn.100632f0
cmp byte [esp + 0x25c], 0
lea eax, [esp + 0x14c]
jne 0x10057e9e
mov eax, dword [esp + 0x148]
add eax, 4
push eax
push 1
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x10057f3f
lea ecx, [esp + 0x140]
call fcn.100626a0
mov ecx, dword [esp + 0x18]
call fcn.100619a0
push 0x101441cc
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
add esp, 8
cmp byte [esp + 0x4a4], 0
mov ebp, vtable.t_str.0
mov dword [esp + 0x388], ebp
jne 0x10057f0c
mov eax, dword [esp + 0x390]
lea edx, [esp + 0x394]
cmp eax, edx
je 0x10057f0c
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x25c], 0
mov dword [esp + 0x140], ebp
jne 0x10057f38
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x10057f38
push eax
call fcn.100cf89b
add esp, 4
xor al, al
jmp 0x1005819e
lea edi, [esp + 0x140]
call fcn.100629b0
cmp byte [esp + 0x25c], 0
lea esi, [esp + 0x14c]
jne 0x10057f63
mov esi, dword [esp + 0x148]
lea edi, [esp + 0x264]
call fcn.10062500
lea eax, [esi + 4]
mov edx, edi
call fcn.10062710
mov byte [esp + 0x5dc], 1
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x10057f99
mov eax, dword [esp + 0x26c]
add eax, 4
lea edx, [esp + 0x388]
call fcn.10062710
cmp byte [esp + 0x380], 0
mov ebp, vtable.t_str.0
mov dword [esp + 0x264], ebp
jne 0x10057fd9
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x10057fd9
push eax
call fcn.100cf89b
add esp, 4
push 0x110
lea eax, [esp + 0x26c]
push 0
push eax
mov dword [esp + 0x270], 0
call fcn.100d6e40
add esp, 0xc
lea esi, [esp + 0x264]
call fcn.10068b50
cmp dword [esp + 0x268], 6
jb 0x10058100
lea eax, [esp + 0x388]
call fcn.10060b00
push eax
lea edi, [esp + 0x268]
call fcn.10062630
mov ecx, str.Application_Data
mov eax, edi
mov byte [esp + 0x5dc], 3
call fcn.100627f0
test al, al
je 0x100580d4
mov eax, str.AppDataRoaming
mov edx, edi
call fcn.10062710
lea ecx, [esp + 0x4ac]
call fcn.1005f360
lea ecx, [esp + 0x388]
push ecx
lea ebx, [esp + 0x4b0]
mov byte [esp + 0x5e0], 4
call fcn.10060ca0
cmp byte [esp + 0x380], 0
lea esi, [esp + 0x270]
jne 0x10058096
mov esi, dword [esp + 0x26c]
lea edi, [esp + 0x1c]
call fcn.10062500
lea eax, [esi + 4]
mov edx, edi
call fcn.10062710
mov eax, edi
lea esi, [esp + 0x4ac]
call fcn.1005fa30
mov ecx, edi
call fcn.1005f910
mov edx, esi
push edx
lea ecx, [esp + 0x38c]
call fcn.1005fa80
mov ecx, esi
call fcn.1005f910
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], ebp
jne 0x10058100
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x270]
cmp eax, ecx
je 0x10058100
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x4a4], 0
lea eax, [esp + 0x394]
jne 0x10058118
mov eax, dword [esp + 0x390]
add eax, 4
mov edx, 0x1016fa00
call fcn.10062710
cmp byte [0x1016fb1c], 0
mov eax, 0x1016fa0c
jne 0x10058138
mov eax, dword [0x1016fa08]
mov edx, dword [esp + 0x14]
add eax, 4
call fcn.10062710
cmp byte [esp + 0x4a4], 0
mov dword [esp + 0x388], ebp
jne 0x10058170
mov eax, dword [esp + 0x390]
lea edx, [esp + 0x394]
cmp eax, edx
je 0x10058170
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x25c], 0
mov dword [esp + 0x140], ebp
jne 0x1005819c
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x1005819c
push eax
call fcn.100cf89b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x5d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5bc]
xor ecx, esp
call fcn.100cf604
add esp, 0x5cc
ret