Function at 0x52b41c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x52b425
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x52b74c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0052726c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52b470
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x52b5ff
mov eax, dword [ebp - 4]
test eax, eax
je 0x52b495
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b495
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x52b49e
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x52b5a8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00416430
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b4ce
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b4ce
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
test eax, eax
je 0x52b4d7
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x52b580
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b4fb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b4fb
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
cmp word [eax], 0x5c
jne 0x52b528
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b51e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b51e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
cmp word [eax + 2], 0x5c
sete al
jmp 0x52b52a
xor eax, eax
test al, al
je 0x52b532
mov al, 1
jmp 0x52b582
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b54f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b54f
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
cmp word [eax], 0x2f
jne 0x52b57c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b572
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b572
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
cmp word [eax + 2], 0x2f
sete al
jmp 0x52b582
xor eax, eax
jmp 0x52b582
xor eax, eax
test al, al
je 0x52b592
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00407848
jmp 0x52b5a8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004167f8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00407848
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x52b5c5
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52b5c5
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406c0c
test eax, eax
je 0x52b5ce
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x52b609
mov eax, dword [ebp - 0xc]
call fcn.00407880
push eax
push 0
call sub.kernel32.dll_GetTempPathW
mov edi, eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.00407b70
mov eax, dword [ebp - 0xc]
call fcn.00407880
push eax
push edi
call sub.kernel32.dll_GetTempPathW
jmp 0x52b609
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0052726c
lea ecx, [ebp - 0x20]
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.0051f180
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00407848
lea eax, [ebp - 8]
mov edx, 0x110
call fcn.00407b70
mov eax, dword [ebp - 8]
call fcn.00407880
push eax
push 0
mov eax, esi
call fcn.00407880
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407880
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
je 0x52b6d1
mov eax, dword [ebp - 8]
call fcn.00407880
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.004079a0
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [ebx + 0x51], 1
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52b6a4
lea ecx, [ebp - 0x2c]
mov dl, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x52b76c
call fcn.00407cc8
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.00527084
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov edx, 2
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [ebp - 0xd], al
jmp 0x52b71c
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52b71c
push 0x52b7ac
lea ecx, [ebp - 0x34]
mov dl, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
push dword [ebp - 0x34]
push 0x52b808
lea ecx, [ebp - 0x38]
or edx, 0xffffffff
mov eax, ebx
call fcn.0055a0dc
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00407dac
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00527084
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b753
lea eax, [ebp - 0x38]
mov edx, 8
call fcn.004077ec
lea eax, [ebp - 0x14]
call fcn.004077e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077ec
ret