Function at 0x52a960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x428]
sub esp, 0x43c
mov ebx, dword [ebp + 8]
mov dword [ebx], 0x880f80
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
test eax, eax
mov edi, eax
jne 0x52ab21
mov eax, dword [ebx]
mov esi, dword [eax + 4]
test esi, esi
jne 0x52a9d6
mov dword [esp], 6
mov dword [esp + 4], str.C:_tmp
mov ecx, ebx
call fcn.005b10d0
sub esp, 8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
mov ecx, ebx
call fcn.005acba0
sub esp, 4
mov ecx, 0x5c
mov dword [esp + 4], 1
mov word [esp], cx
mov ecx, ebx
call fcn.00667010
sub esp, 8
test al, al
jne 0x52a9c5
lea eax, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005849c0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x52aa30
cmp edx, 0xffffffff
je 0x52aa4e
lock sub dword [eax], 1
jne 0x52aa4e
nop
lea esi, [esi]
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov esi, dword [ebx]
mov eax, dword [esi + 4]
test eax, eax
je 0x52a9a2
cmp eax, 1
jle 0x52a9bb
mov eax, dword [esi]
cmp eax, 1
ja 0x52aa71
cmp dword [esi + 0xc], 0x10
je 0x52aa8e
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
mov ecx, ebx
add eax, 1
mov dword [esp], eax
call fcn.005ab710
mov esi, dword [ebx]
sub esp, 8
cmp dword [esi + 4], 1
jle 0x52a9bb
mov eax, dword [esi + 0xc]
cmp word [esi + eax + 2], 0x3a
jne 0x52a9bb
movzx eax, word [esi + eax]
call fcn.0058ea50
mov edi, eax
mov eax, dword [esi]
cmp eax, 1
ja 0x52aabf
cmp dword [esi + 0xc], 0x10
je 0x52aadc
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
mov ecx, ebx
add eax, 1
mov dword [esp], eax
call fcn.005ab710
mov esi, dword [ebx]
sub esp, 8
mov edx, dword [esi + 4]
test edx, edx
jle 0x52abd1
mov eax, dword [esi]
cmp eax, 1
ja 0x52aaf8
mov edx, dword [esi + 0xc]
mov eax, esi
cmp edx, 0x10
je 0x52ab18
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
mov ecx, ebx
add eax, 1
mov dword [esp], eax
call fcn.005ab710
mov eax, dword [ebx]
sub esp, 8
mov edx, dword [eax + 0xc]
mov word [eax + edx], di
jmp 0x52a9bb
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [eax - 1]
sub esp, 0xc
cmp edx, 0x102
jbe 0x52abb3
lea eax, [ebp - 0x42c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005b01a0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x42c], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x52ab90
cmp edx, 0xffffffff
je 0x52a999
lock sub dword [eax], 1
jne 0x52a999
lea esi, [esi]
mov eax, dword [ebp - 0x42c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52a999
lea edx, [ebp - 0x42c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.005b01a0
jmp 0x52ab60
mov eax, 0x20
mov dword [esp], 1
mov ecx, ebx
mov word [esp + 4], ax
call fcn.005add80
jmp 0x52ab10