Function at 0x478130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edb8a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x188], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x18c], 0
mov ecx, dword [eax]
mov eax, dword [0x52eae8]
cmp eax, dword [ecx + 4]
jle 0x4781ce
push 0x52eae8
call fcn.0049fe2c
add esp, 4
cmp dword [0x52eae8], 0xffffffff
jne 0x4781ce
push 0x507250
mov ecx, 0x52eaec
mov dword [ebp - 4], 0
call fcn.00409ba0
push 0x4f08f0
call fcn.004a0183
push 0x52eae8
mov dword [ebp - 4], 0xffffffff
call fcn.0049fded
add esp, 8
cmp dword [0x52eafc], 0
jne 0x4785dc
push 0
push 0x1a
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x128], 0x7e5d4d11
mov dword [ebp - 0x124], 0x4d6276
mov dword [ebp - 4], 1
mov dword [ebp - 0x13c], 0x83a316d
mov dword [ebp - 0x138], 0xb0b180f
mov byte [ebp - 0x134], 0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], 0
mov byte [ebp - 0x184], 0
jne 0x478250
xor ecx, ecx
jmp 0x478269
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x478260
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x184]
call fcn.00409aa0
mov byte [ebp - 4], 3
mov cl, byte [ebp - 0x13c]
movzx eax, byte [ebp - 0x13b]
xor al, cl
mov byte [ebp - 0x12c], 0
mov byte [ebp - 0x133], al
movzx eax, byte [ebp - 0x13a]
xor al, cl
mov byte [ebp - 0x132], al
movzx eax, byte [ebp - 0x139]
xor al, cl
mov byte [ebp - 0x131], al
movzx eax, byte [ebp - 0x138]
xor al, cl
mov byte [ebp - 0x130], al
movzx eax, byte [ebp - 0x137]
xor al, cl
mov byte [ebp - 0x12f], al
movzx eax, byte [ebp - 0x136]
xor al, cl
mov byte [ebp - 0x12e], al
movzx eax, byte [ebp - 0x135]
xor al, cl
mov byte [ebp - 0x12d], al
lea eax, [ebp - 0x133]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004078b0
mov edx, eax
mov byte [ebp - 4], 4
mov cl, byte [ebp - 0x128]
movzx eax, byte [ebp - 0x127]
xor al, cl
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x120], al
movzx eax, byte [ebp - 0x126]
xor al, cl
mov byte [ebp - 0x11f], al
movzx eax, byte [ebp - 0x125]
xor al, cl
mov byte [ebp - 0x11e], al
movzx eax, byte [ebp - 0x124]
xor al, cl
mov byte [ebp - 0x11d], al
movzx eax, byte [ebp - 0x123]
xor al, cl
mov byte [ebp - 0x11c], al
movzx eax, byte [ebp - 0x122]
xor al, cl
mov byte [ebp - 0x11b], al
lea eax, [ebp - 0x120]
push eax
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.004078b0
add esp, 0x18
mov edi, eax
cmp edi, 0x52eaec
je 0x4783e0
mov eax, dword [0x52eb00]
cmp eax, 0x10
jb 0x4783ba
inc eax
mov ecx, 0x52eaec
push eax
push dword [0x52eaec]
call fcn.00409950
push edi
mov ecx, 0x52eaec
mov dword [0x52eb00], 0xf
mov dword [0x52eafc], 0
mov byte [0x52eaec], 0
call fcn.00407610
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
jb 0x4783fe
inc eax
lea ecx, [ebp - 0x16c]
push eax
push dword [ebp - 0x16c]
call fcn.00409950
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
cmp eax, 0x10
jb 0x478437
inc eax
lea ecx, [ebp - 0x154]
push eax
push dword [ebp - 0x154]
call fcn.00409950
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x140], 0xf
mov dword [ebp - 0x144], 0
mov byte [ebp - 0x154], 0
cmp eax, 0x10
jb 0x478470
inc eax
lea ecx, [ebp - 0x184]
push eax
push dword [ebp - 0x184]
call fcn.00409950
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.004c2ac4
add esp, 8
cmp eax, 0xffffffff
jne 0x4785dc
mov dword [ebp - 0x128], 0x222a0945
mov word [ebp - 0x124], 0x1936
mov byte [ebp - 0x122], 0
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 6
call fcn.004188c0
mov edx, eax
mov byte [ebp - 4], 7
mov cl, byte [ebp - 0x128]
movzx eax, byte [ebp - 0x127]
xor al, cl
mov byte [ebp - 0x11c], 0
mov byte [ebp - 0x121], al
movzx eax, byte [ebp - 0x126]
xor al, cl
mov byte [ebp - 0x120], al
movzx eax, byte [ebp - 0x125]
xor al, cl
mov byte [ebp - 0x11f], al
movzx eax, byte [ebp - 0x124]
xor al, cl
mov byte [ebp - 0x11e], al
movzx eax, byte [ebp - 0x123]
xor al, cl
mov byte [ebp - 0x11d], al
lea eax, [ebp - 0x121]
push eax
push edx
lea eax, [ebp - 0x154]
push eax
call fcn.004078b0
add esp, 0xc
mov edi, eax
cmp edi, 0x52eaec
je 0x47857e
mov eax, dword [0x52eb00]
cmp eax, 0x10
jb 0x478558
inc eax
mov ecx, 0x52eaec
push eax
push dword [0x52eaec]
call fcn.00409950
push edi
mov ecx, 0x52eaec
mov dword [0x52eb00], 0xf
mov dword [0x52eafc], 0
mov byte [0x52eaec], 0
call fcn.00407610
mov eax, dword [ebp - 0x140]
cmp eax, 0x10
jb 0x47859c
inc eax
lea ecx, [ebp - 0x154]
push eax
push dword [ebp - 0x154]
call fcn.00409950
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x140], 0xf
mov dword [ebp - 0x144], 0
mov byte [ebp - 0x154], 0
cmp eax, 0x10
jb 0x4785d5
inc eax
lea ecx, [ebp - 0x16c]
push eax
push dword [ebp - 0x16c]
call fcn.00409950
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x52eaec
mov byte [esi], 0
call fcn.00409640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret