Function at 0x46ed40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505848
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x13c
mov eax, dword [0x5732cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 1
push 0x468ad0
call fcn.004dbbc8
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00417420
mov byte [ebp - 4], 2
mov byte [ebp - 0x120], 0
push 0x104
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.004dba80
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x46f047
movsx edx, byte [ebp - 0x120]
test edx, edx
je 0x46f047
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x14]
call fcn.004199b0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x124]
call fcn.0041ea10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x124]
call fcn.00431550
mov dword [ebp - 0x128], 0xffffffff
push 0x51cfb0
lea ecx, [ebp - 0x124]
call fcn.00424960
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
je 0x46ef76
push 0x51c36e
lea ecx, [ebp - 0x124]
call fcn.004199b0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x124]
call fcn.00422350
push 0x51c36f
lea ecx, [ebp - 0x12c]
call fcn.0041ad50
mov byte [ebp - 4], 4
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00422350
mov ecx, dword [ebp - 0x128]
add ecx, 7
push ecx
push 0x51cfb8
lea ecx, [ebp - 0x12c]
call fcn.004246d0
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
je 0x46ef0b
mov edx, dword [ebp - 0x130]
push edx
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x124]
call fcn.004249b0
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041e3d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x13c]
call fcn.00416630
push str.AppDataLocalLow
lea ecx, [ebp - 0x14]
call fcn.0041d470
jmp 0x46ef65
push 0x51c387
lea ecx, [ebp - 0x14]
call fcn.004199b0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041ea10
mov ecx, dword [ebp - 0x144]
or ecx, 1
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00416630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.00416630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00416630
mov eax, dword [ebp + 8]
jmp 0x46f1f4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00416630
jmp 0x46efc1
push 0x51c393
lea ecx, [ebp - 0x14]
call fcn.004199b0
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041ea10
mov eax, dword [ebp - 0x144]
or eax, 1
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.00416630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00416630
mov eax, dword [ebp + 8]
jmp 0x46f1f4
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x46eff4
lea ecx, [ebp - 0x14]
call fcn.0041cde0
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00423b30
movsx edx, al
cmp edx, 0x5c
je 0x46eff2
push 0x51cfd0
lea ecx, [ebp - 0x14]
call fcn.0041d470
jmp 0x46f038
lea ecx, [ebp - 0x14]
call fcn.0041cde0
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00423b30
movsx eax, al
cmp eax, 0x5c
jne 0x46f038
lea ecx, [ebp - 0x14]
call fcn.0041cde0
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004249b0
lea ecx, [ebp - 0x140]
call fcn.00416630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.00416630
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041ea10
mov eax, dword [ebp - 0x144]
or eax, 1
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00416630
mov eax, dword [ebp + 8]
jmp 0x46f1f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004db901
mov esp, ebp
pop ebp
ret