Function at 0x4167c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b34c2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c8]
mov ebx, ecx
lea ecx, [esp + 0x264]
mov dword [esp + 0x14], eax
call fcn.0041ead0
mov ebp, 0x105
mov dword [esp + 0x4c0], 0
mov ecx, ebp
lea esi, [esp + 0x26c]
mov dword [esp + 0x384], ebp
call fcn.0041f470
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x416851
mov eax, dword [esp + 0x26c]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x416952
xor eax, eax
cmp dword [esp + 0x384], eax
je 0x41687f
mov dword [esp + 0x384], eax
mov ecx, 1
lea esi, [esp + 0x26c]
mov dword [esp + 0x268], eax
call fcn.0041f470
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x4168af
mov eax, dword [esp + 0x26c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, ebp
lea esi, [esp + 0x26c]
mov dword [esp + 0x384], ebp
call fcn.0041f470
cmp byte [esp + 0x380], 0
lea eax, [esp + 0x270]
jne 0x4168e2
mov eax, dword [esp + 0x26c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x416952
lea ecx, [esp + 0x264]
call fcn.0041ecb0
mov ecx, ebx
call fcn.0041a480
push 0x4d3d68
push 0x4d4204
mov edx, eax
call fcn.0041f080
add esp, 8
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], 0x4d4d70
jne 0x41694b
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x41694b
push eax
call fcn.00470027
add esp, 4
xor al, al
jmp 0x416c0e
lea edi, [esp + 0x264]
call fcn.0041ef10
cmp byte [esp + 0x380], 0
lea esi, [esp + 0x270]
jne 0x416976
mov esi, dword [esp + 0x26c]
lea ecx, [esp + 0x13c]
call fcn.0041ead0
lea eax, [esi + 4]
lea edx, [esp + 0x13c]
call fcn.0041ed00
mov byte [esp + 0x4c0], 0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x4169b1
mov eax, dword [esp + 0x144]
mov ebx, dword [esp + 0x14]
lea esi, [ebx + 0x254]
add eax, 4
mov edx, esi
call fcn.0041ed00
cmp byte [esp + 0x258], 0
mov ebp, 0x4d4d70
mov dword [esp + 0x13c], ebp
jne 0x4169f6
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x4169f6
push eax
call fcn.00470027
add esp, 4
cmp byte [ebx + 4], 0
je 0x416b3d
mov ecx, esi
call fcn.0041d6c0
push eax
lea ecx, [esp + 0x140]
call fcn.0041ec10
mov ecx, str.Application_Data
lea eax, [esp + 0x13c]
mov byte [esp + 0x4c0], 2
call fcn.0041ede0
test al, al
je 0x416b09
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x416a4d
mov eax, dword [esp + 0x144]
push 2
add eax, 4
push 0x4cb7d0
push eax
call fcn.0047236c
add esp, 0xc
test eax, eax
je 0x416b09
mov eax, str.AppDataRoaming
lea edx, [esp + 0x13c]
call fcn.0041ed00
lea ecx, [esp + 0x38c]
call fcn.0041bda0
lea edx, [esp + 0x38c]
push edx
mov ecx, esi
mov byte [esp + 0x4c4], 3
call fcn.0041d710
cmp byte [esp + 0x258], 0
lea edi, [esp + 0x148]
jne 0x416ab4
mov edi, dword [esp + 0x144]
lea ecx, [esp + 0x18]
call fcn.0041ead0
lea eax, [edi + 4]
lea edx, [esp + 0x18]
call fcn.0041ed00
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x390]
call fcn.0041c430
lea ecx, [esp + 0x18]
call fcn.0041ec80
mov ecx, esi
call fcn.0041c660
test al, al
je 0x416afd
lea ecx, [esp + 0x38c]
push ecx
mov ecx, esi
call fcn.0041c490
lea ecx, [esp + 0x38c]
call fcn.0041ec80
mov byte [esp + 0x4c0], 0
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], ebp
jne 0x416b3d
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x416b3d
push eax
call fcn.00470027
add esp, 4
call fcn.00418d50
test al, al
jne 0x416be0
push str.Current_AppdataPath:
lea ecx, [esp + 0x140]
call fcn.0041ec10
mov byte [esp + 0x4c0], 5
cmp byte [ebx + 0x370], 0
lea eax, [ebx + 0x260]
jne 0x416b78
mov eax, dword [ebx + 0x25c]
add eax, 4
push eax
push 0x4d4204
lea edx, [esp + 0x144]
call fcn.0041f080
add esp, 8
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x416ba8
mov eax, dword [esp + 0x144]
add eax, 4
push eax
call fcn.00418ec0
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], ebp
jne 0x416be0
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x416be0
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x380], 0
mov dword [esp + 0x264], ebp
jne 0x416c0c
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x270]
cmp eax, edx
je 0x416c0c
push eax
call fcn.00470027
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0046fdae
add esp, 0x4b0
ret 4