Function at 0x521410
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x6421a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x218]
mov esi, dword [ebp + 0x214]
push 0
mov dword [ebp - 0x28], eax
call fcn.0051d5c0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x24]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00403940
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0
cmp edi, 3
jae 0x5214b7
push 0xffffffffffffffff
push 0x67adcc
lea ecx, [ebp - 0x24]
call fcn.004031a0
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 3
mov esi, dword [ebp - 0x24]
jae 0x5214e5
push 0x40
push esi
call fcn.00446560
add esp, 8
test eax, eax
je 0x5214f6
test esi, esi
jne 0x5214d9
xor ecx, ecx
mov word [eax + edi*2], cx
mov esi, eax
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 3
test esi, esi
je 0x5214f6
xor eax, eax
mov word [esi + 6], ax
push 0xffffffffffffffff
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00403940
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x521536
lea eax, [ebp - 0x18]
push eax
call fcn.00471c00
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x52154d
mov eax, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x521550
push 1
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040a5a0
mov eax, dword [ebp - 0x18]
mov ecx, 0x649aa0
test esi, esi
je 0x52155b
mov ecx, esi
test eax, eax
jne 0x521564
mov eax, 0x649aa0
lea edx, [ebp]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5215c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x521591
jne 0x521588
xor edi, edi
jmp 0x521591
movzx edi, di
or edi, 0x83ff0000
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x5215a5
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
jmp 0x5216af
push 0
push 0x4000100
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x44], eax
cmp eax, 0xffffffff
jne 0x521637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x521605
jne 0x5215fc
xor edi, edi
jmp 0x521605
movzx edi, di
or edi, 0x83ff0000
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test eax, eax
je 0x521619
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 5
jmp 0x5216af
mov ecx, ebx
call fcn.0051ce60
mov edi, eax
test edi, edi
jns 0x52167f
push 0
mov ecx, ebx
call fcn.0051d5c0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test eax, eax
je 0x521661
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 7
jmp 0x5216af
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 8
test eax, eax
je 0x521693
push eax
call fcn.00446420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 9
test esi, esi
je 0x5216bc
push esi
call fcn.00446420
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x20c]
pop ebp
ret 8