Function at 0x508420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551706
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x52c], 0
lea ecx, [ebp - 0x4c8]
call fcn.00418590
mov dword [ebp - 4], 1
call fcn.0041a790
movzx eax, al
test eax, eax
je 0x5086aa
push 0x208
push 0
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.0050d580
add esp, 0xc
push 0
push 0x1c
lea edx, [ebp - 0x2a8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 0x4c
mov word [ebp - 0xa0], ax
mov ecx, 0x6f
mov word [ebp - 0x9e], cx
mov edx, 0x77
mov word [ebp - 0x9c], dx
mov eax, 0x5c
mov word [ebp - 0x9a], ax
mov ecx, 0x32
mov word [ebp - 0x98], cx
mov edx, 0x33
mov word [ebp - 0x96], dx
mov eax, 0x34
mov word [ebp - 0x94], ax
mov ecx, 0x35
mov word [ebp - 0x92], cx
mov edx, 0x50
mov word [ebp - 0x90], dx
mov eax, 0x69
mov word [ebp - 0x8e], ax
mov ecx, 0x6e
mov word [ebp - 0x8c], cx
mov edx, 0x79
mov word [ebp - 0x8a], dx
mov eax, 0x69
mov word [ebp - 0x88], ax
mov ecx, 0x6e
mov word [ebp - 0x86], cx
mov edx, 0x5c
mov word [ebp - 0x84], dx
mov eax, 0x32
mov word [ebp - 0x82], ax
mov ecx, 0x33
mov word [ebp - 0x80], cx
mov edx, 0x34
mov word [ebp - 0x7e], dx
mov eax, 0x35
mov word [ebp - 0x7c], ax
mov ecx, 0x50
mov word [ebp - 0x7a], cx
mov edx, 0x69
mov word [ebp - 0x78], dx
mov eax, 0x6e
mov word [ebp - 0x76], ax
mov ecx, 0x79
mov word [ebp - 0x74], cx
mov edx, 0x69
mov word [ebp - 0x72], dx
mov eax, 0x6e
mov word [ebp - 0x70], ax
mov ecx, 0x44
mov word [ebp - 0x6e], cx
mov edx, 0x69
mov word [ebp - 0x6c], dx
mov eax, 0x73
mov word [ebp - 0x6a], ax
mov ecx, 0x70
mov word [ebp - 0x68], cx
mov edx, 0x6c
mov word [ebp - 0x66], dx
mov eax, 0x61
mov word [ebp - 0x64], ax
mov ecx, 0x79
mov word [ebp - 0x62], cx
mov edx, 0x2e
mov word [ebp - 0x60], dx
mov eax, 0x64
mov word [ebp - 0x5e], ax
mov ecx, 0x61
mov word [ebp - 0x5c], cx
mov edx, 0x74
mov word [ebp - 0x5a], dx
xor eax, eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x4f8]
call fcn.00418550
mov dword [ebp - 0x530], eax
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x534], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x534]
push ecx
lea edx, [ebp - 0x4e0]
push edx
call fcn.0041ead0
add esp, 0xc
mov dword [ebp - 0x538], eax
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x53c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x4c8]
call fcn.004184d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4e0]
call fcn.004184c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4f8]
call fcn.004184c0
jmp 0x50888a
push 0x208
push 0
lea edx, [ebp - 0x4b0]
push edx
call fcn.0050d580
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x4b0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x5c
mov word [ebp - 0x54], cx
mov edx, 0x32
mov word [ebp - 0x52], dx
mov eax, 0x33
mov word [ebp - 0x50], ax
mov ecx, 0x34
mov word [ebp - 0x4e], cx
mov edx, 0x35
mov word [ebp - 0x4c], dx
mov eax, 0x50
mov word [ebp - 0x4a], ax
mov ecx, 0x69
mov word [ebp - 0x48], cx
mov edx, 0x6e
mov word [ebp - 0x46], dx
mov eax, 0x79
mov word [ebp - 0x44], ax
mov ecx, 0x69
mov word [ebp - 0x42], cx
mov edx, 0x6e
mov word [ebp - 0x40], dx
mov eax, 0x5c
mov word [ebp - 0x3e], ax
mov ecx, 0x32
mov word [ebp - 0x3c], cx
mov edx, 0x33
mov word [ebp - 0x3a], dx
mov eax, 0x34
mov word [ebp - 0x38], ax
mov ecx, 0x35
mov word [ebp - 0x36], cx
mov edx, 0x50
mov word [ebp - 0x34], dx
mov eax, 0x69
mov word [ebp - 0x32], ax
mov ecx, 0x6e
mov word [ebp - 0x30], cx
mov edx, 0x79
mov word [ebp - 0x2e], dx
mov eax, 0x69
mov word [ebp - 0x2c], ax
mov ecx, 0x6e
mov word [ebp - 0x2a], cx
mov edx, 0x44
mov word [ebp - 0x28], dx
mov eax, 0x69
mov word [ebp - 0x26], ax
mov ecx, 0x73
mov word [ebp - 0x24], cx
mov edx, 0x70
mov word [ebp - 0x22], dx
mov eax, 0x6c
mov word [ebp - 0x20], ax
mov ecx, 0x61
mov word [ebp - 0x1e], cx
mov edx, 0x79
mov word [ebp - 0x1c], dx
mov eax, 0x2e
mov word [ebp - 0x1a], ax
mov ecx, 0x64
mov word [ebp - 0x18], cx
mov edx, 0x61
mov word [ebp - 0x16], dx
mov eax, 0x74
mov word [ebp - 0x14], ax
xor ecx, ecx
mov word [ebp - 0x12], cx
lea edx, [ebp - 0x4b0]
push edx
lea ecx, [ebp - 0x528]
call fcn.00418550
mov dword [ebp - 0x540], eax
mov eax, dword [ebp - 0x540]
mov dword [ebp - 0x544], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x544]
push edx
lea eax, [ebp - 0x510]
push eax
call fcn.0041ead0
add esp, 0xc
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 0x54c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x54c]
push edx
lea ecx, [ebp - 0x4c8]
call fcn.004184d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x510]
call fcn.004184c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x528]
call fcn.004184c0
lea eax, [ebp - 0x4c8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00418510
mov ecx, dword [ebp - 0x52c]
or ecx, 1
mov dword [ebp - 0x52c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c8]
call fcn.004184c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050b067
mov esp, ebp
pop ebp
ret