Function at 0x46d580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x24c
mov eax, dword [0x4d1698]
xor eax, esp
mov dword [esp + 0x244], eax
mov ecx, dword [0x4da95c]
push ebx
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x1a
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d5c0
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d552c
call fcn.00403d10
mov ecx, dword [0x4da95c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x23
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d600
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d5548
call fcn.00403d10
mov ecx, dword [0x4da95c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d640
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d5564
call fcn.00403d10
mov ecx, dword [0x4da95c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x10
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d680
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d5580
call fcn.00403d10
mov ecx, dword [0x4da95c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x1c
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d6c0
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d559c
call fcn.00403d10
mov ecx, dword [0x4da95c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 5
push ecx
mov byte [esp + 0x4c], 0
call edi
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d700
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4d55d4
call fcn.00403d10
lea eax, [esp + 0x140]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
ja 0x46d7a3
test eax, eax
je 0x46d7a3
lea ebx, [eax - 1]
xor edi, edi
mov byte [esp + 0xd], 0
test ebx, ebx
je 0x46d77f
jmp 0x46d750
mov cl, byte [esp + edi + 0x140]
lea eax, [esp + 0xc]
mov byte [esp + 0xc], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d762
sub eax, edx
push eax
lea eax, [esp + 0x10]
mov ecx, 0x4d55b8
call fcn.00404a90
inc edi
cmp edi, ebx
jb 0x46d750
push 1
mov ecx, 0x4d55b8
call fcn.0044a780
add esp, 4
test al, al
jne 0x46d7a3
push 0
push 0x4aeeef
mov ecx, 0x4d55b8
call fcn.00403d10
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
lea eax, [esp + 0x18]
push eax
mov bl, 2
push str.string_get_DIRECTORY_APPDATA__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f7a0
call edx
xor eax, eax
push 0
push 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_COMMON_APPDATA__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f7d0
call edx
xor eax, eax
push 0
push 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_DESKTOP_VIRTUAL__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f800
call edx
xor eax, eax
push 0
push 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_DESKTOP__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f830
call edx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_LOCAL_APPDATA__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f860
call edx
xor eax, eax
push 0
push 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_TEMP__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f8c0
call edx
xor eax, eax
push 0
push 0
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], al
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push str.string_get_DIRECTORY_MY_DOCUMENTS__
mov ecx, esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x20], 0x44f890
call edx
mov ecx, dword [esp + 0x24c]
pop edi
pop ebx
xor ecx, esp
call fcn.0048c97b
add esp, 0x24c
ret