Function at 0x4f46f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00577ef0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4f4743
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4f4758
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x4f4773
cmp dword [ebp + 8], 8
jg 0x4f4773
mov eax, 1
jmp 0x4f4778
mov eax, 0
test eax, eax
je 0x4f484f
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x4f478d
cmp eax, 9
jl 0x4f47a4
push 0x117
push 0x439773c
push 9
call fcn.005769b1
add esp, 0xc
dec eax
call 0x4f47aa
pop ebx
add ebx, dword [eax*4 + 0x846dc7]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x4f48a1
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4f488a
push 0x24e
push 0x439773c
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4f499e
cmp dword [ebp + 8], 0xa
jne 0x4f48f3
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4f48dc
push 0x2de
push 0x439773c
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4f499e
cmp dword [ebp + 8], 0xb
jne 0x4f4945
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0x104
xor eax, eax
call dword [sym.imp.kernel32.dll_GetTempPathA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4f492e
push 0x36e
push 0x439773c
push 6
call fcn.005769b1
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x4f499e
cmp dword [ebp + 8], 0xc
jne 0x4f499e
mov dword [ebp - 0x10], esp
push 0
push 0x20
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4f498a
push 0x3e5
push 0x439773c
push 6
call fcn.005769b1
add esp, 0xc
test eax, eax
je 0x4f4999
mov dword [ebp - 0xc], 1
jmp 0x4f499e
cmp dword [ebp - 0xc], 0
je 0x4f4a66
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4f49c7
mov eax, 0x834e83
push eax
push 2
mov ebx, 0x138
call fcn.00577a40
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x835663
push dword [ebp - 0x10]
call fcn.00459f78
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4f4a0b
push ebx
call fcn.005769c9
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4f4a45
push 0x835663
push dword [ebp - 4]
mov ecx, 2
call fcn.0046190c
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4f4a41
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4f4a61
push eax
mov ebx, eax
call fcn.0045ad44
inc eax
push eax
call fcn.005769bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4f4a70
mov eax, 0x834e83
jmp 0x4f4a70
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4f4a81
push ebx
call fcn.005769c9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8