Function at 0x10052384
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x4a4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x208
mov dword [ebp - 0x6b0], ecx
push esi
xor edi, edi
push edi
push eax
call fcn.1012db70
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.1012db70
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add eax, 0xfffffffd
cmp eax, 0x101
ja 0x10052402
lea eax, [ebp - 0x21c]
push eax
call fcn.1001441f
test eax, eax
jne 0x1005249f
push 0x208
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x10052465
push str.Temp
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10052465
lea eax, [ebp - 0x21c]
push eax
call fcn.10010313
test eax, eax
lea eax, [ebp - 0x21c]
jne 0x10052476
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005249f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b632
leave
ret
push eax
call fcn.1001441f
test eax, eax
jne 0x1005249f
lea eax, [ebp - 0x21c]
push eax
call fcn.101103e8
mov ecx, eax
call fcn.101103b3
push 0x64
call esi
lea eax, [ebp - 0x21c]
jmp 0x10052459
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
push edi
push 0x104
lea eax, [ebp - 0x4a4]
push eax
call fcn.10015d3f
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 0x80
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x29c]
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x14]
push 0x10
push eax
push ebx
call fcn.10130fe5
pop ecx
add eax, eax
push eax
push ebx
call fcn.1011234f
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.10115f9b
mov edi, dword [ebp - 0x6b0]
lea eax, [ebp - 0x29c]
push eax
push str._s.dat
push edi
call fcn.10014838
add esp, 0x2c
lea eax, [ebp - 0x21c]
push dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10052465
lea eax, [ebp - 0x21c]
push eax
call fcn.10130fe5
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.10008f20
lea eax, [ebp - 0x21c]
push eax
call fcn.10010313
test eax, eax
je 0x10052593
lea eax, [ebp - 0x21c]
push eax
call fcn.1001441f
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x10052583
call fcn.10052ad1
pop ecx
jmp 0x10052593
call fcn.101103e8
mov ecx, eax
call fcn.101103b3
push 0x64
call esi
lea eax, [ebp - 0x21c]
or esi, 0xffffffff
push eax
call fcn.10010313
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
jne 0x100525e9
push 8
call fcn.10010082
pop ecx
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
test eax, eax
je 0x100525d5
lea ecx, [ebp - 0x21c]
push ecx
call eax
jmp 0x100525de
lea eax, [ebp - 0x21c]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x100526c3
push 0x208
lea eax, [ebp - 0x6ac]
push 0
push eax
call fcn.1012db70
add esp, 0xc
lea eax, [ebp - 0x6ac]
push eax
push 0
push 0
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10052465
push SysReAllocString
lea eax, [ebp - 0x6ac]
push eax
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.10015d3f
lea eax, [ebp - 0x21c]
push eax
call fcn.10130fe5
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10008f20
lea eax, [ebp - 0x21c]
push eax
call fcn.10010313
test eax, eax
je 0x10052681
lea eax, [ebp - 0x21c]
push eax
call fcn.101103e8
mov ecx, eax
call fcn.101103b3
cmp esi, 0xffffffff
jne 0x100526c3
push 8
call fcn.10010082
pop ecx
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
test eax, eax
je 0x100526af
lea ecx, [ebp - 0x21c]
push ecx
call eax
jmp 0x100526b8
lea eax, [ebp - 0x21c]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10052465
and dword [ebp - 0x6b4], 0
push ebx
call fcn.10130fe5
mov edi, eax
push 0xa
add edi, edi
call fcn.10010082
pop ecx
pop ecx
push 0
test eax, eax
je 0x100526f1
lea ecx, [ebp - 0x6b4]
push ecx
push edi
push ebx
push esi
call eax
jmp 0x10052701
lea eax, [ebp - 0x6b4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.10049da5
test edi, edi
jne 0x10052719
lea eax, [ebp - 0x21c]
push eax
call fcn.1000f894
mov eax, edi
jmp 0x10052467