Function at 0x42f76c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2fc
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp + 0xc]
lea esi, [0x5584db]
xor edi, edi
mov ebx, 0x208
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x2ac], eax
mov al, 1
test al, 1
mov byte [ebp - 0x2ad], al
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], ebx
jne 0x42f7db
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b4]
mov cl, byte [ebp - 0x2ad]
test cl, 1
mov edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2d0], edx
jne 0x42f804
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x208
call fcn.00540e93
mov dword [ebp - 0x254], 0
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], eax
call fcn.0041616c
lea ecx, [ebp - 0x44]
lea edx, [0x550e90]
mov dword [ebp - 0x28], edx
mov edx, 0x5587a0
mov dword [ebp - 0x24], edx
mov edx, ebp
mov dword [ebp - 0x20], edx
mov edx, esp
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], 0x42fab3
mov byte [ebp - 0x2d1], al
mov eax, ecx
call fcn.00551af9
mov bl, byte [ebp - 0x2d1]
test bl, 1
jne 0x42f889
jmp 0x42f895
mov dword [ebp - 0x254], 0x1a
jmp 0x42f8e9
lea eax, [0x5584de]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0041616c
test al, 1
jne 0x42f8b7
jmp 0x42f8c3
mov dword [ebp - 0x254], 0
jmp 0x42f8e7
lea eax, [0x5584e1]
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x2cc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004043c0
jmp 0x42fa82
jmp 0x42f8e9
xor eax, eax
lea ecx, [ebp - 0x250]
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x3c], 0xffffffff
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [ebp - 0x2d8], eax
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
sub esp, 0x10
cmp eax, 0
je 0x42fa74
mov dword [ebp - 0x3c], 0xffffffff
mov eax, esp
lea ecx, [ebp - 0x250]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x270]
mov dword [eax], edx
mov dword [ebp - 0x2dc], ecx
call fcn.0042d654
mov dword [ebp - 0x3c], 1
mov eax, esp
mov ecx, dword [ebp - 0x2dc]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x29c]
mov dword [eax], edx
call fcn.0042d654
jmp 0x42f970
mov dword [ebp - 0x3c], 2
mov eax, esp
lea ecx, [ebp - 0x29c]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x280]
mov dword [eax], ecx
call fcn.0042d950
jmp 0x42f991
mov eax, esp
lea ecx, [ebp - 0x280]
mov dword [eax], ecx
call fcn.004223d4
mov dword [ebp - 0x3c], 3
mov ecx, esp
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ecx], eax
call fcn.004043c0
jmp 0x42f9bb
lea eax, [ebp - 0x280]
mov dword [esp], eax
call fcn.00422814
lea eax, [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040380c
lea eax, [ebp - 0x270]
mov dword [esp], eax
call fcn.0040380c
jmp 0x42fa82
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.0040c0d4
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.00551b1a
mov eax, dword [ebp - 0x2b8]
add esp, 0x2fc
pop esi
pop edi
pop ebx
pop ebp
ret