Function at 0x4f09fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4f0a05
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00404c70
xor eax, eax
push ebp
push 0x4f0dc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, esi
call fcn.004047c0
cmp dword [ebp - 8], 0
jne 0x4f0a57
cmp dword [ebp - 4], 0
je 0x4f0d8a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetDesktopFolder
mov eax, dword [0x504e3c]
cmp dword [eax], 2
jne 0x4f0a80
mov eax, dword [0x504a20]
cmp dword [eax], 5
jge 0x4f0a89
cmp ebx, 0x31
je 0x4f0b0d
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x30]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x504c84]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x34]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
mov edx, dword [ebp - 0x1c]
xor eax, eax
call fcn.004f0860
mov edi, eax
jmp 0x4f0c88
lea eax, [ebp - 0x1c]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x38]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x504c84]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x3c]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
lea eax, [ebp - 0x28]
call fcn.00406350
push eax
push 0x60
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x40]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x40]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0c80
test ebx, ebx
jne 0x4f0c80
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, eax
cmp ebx, 1
je 0x4f0c80
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x44]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0c80
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.004f0960
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5047dc]
call fcn.00404dc4
dec eax
jne 0x4f0c78
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004f0860
mov edi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x504c84]
push eax
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x48]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
jmp 0x4f0c80
test ebx, ebx
je 0x4f0bc6
test ebx, ebx
jne 0x4f0d8a
lea eax, [ebp - 0x28]
call fcn.00406350
push eax
push 0xe0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x4c]
mov eax, 8
call fcn.00409220
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.00404814
test ebx, ebx
jne 0x4f0d8a
jmp 0x4f0d58
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004f0960
cmp dword [ebp - 8], 0
jne 0x4f0cf8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 9], 1
jmp 0x4f0d58
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
call fcn.00404bcc
jne 0x4f0d58
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.004f0860
mov ebx, eax
push 0
push ebx
push 0
push 0
push esi
lea eax, [ebp - 0x50]
mov ecx, 0x4f0de4
mov edx, dword [ebp - 0x2c]
call fcn.00404acc
mov eax, dword [ebp - 0x50]
xor ecx, ecx
xor edx, edx
call fcn.004f0dec
mov byte [ebp - 9], al
mov eax, ebx
call fcn.004f08bc
mov eax, edi
call fcn.004f08bc
mov eax, dword [ebp - 0x20]
call fcn.004f08bc
mov eax, dword [ebp - 0x1c]
call fcn.004f08bc
jmp 0x4f0d8a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4f0ccd
mov eax, edi
call fcn.004f08bc
mov eax, dword [ebp - 0x20]
call fcn.004f08bc
mov eax, dword [ebp - 0x1c]
call fcn.004f08bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0dcf
lea eax, [ebp - 0x50]
mov edx, 0xa
call fcn.004047e4
lea eax, [ebp - 0x28]
call fcn.00406350
lea eax, [ebp - 0x18]
mov edx, dword [0x435280]
mov ecx, 3
call fcn.00405384
lea eax, [ebp - 8]
call fcn.004047c0
ret