Function at 0x40f6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aa6b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4363e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00420700
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
jmp 0x40f730
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f730
mov eax, dword [0x430670]
mov dword [edi], eax
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f750
mov ecx, 7
mov esi, 0x430674
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x218]
movsw word es:[edi], word [esi]
call fcn.00411870
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f780
mov ecx, dword [0x430670]
lea eax, [ebp - 0x218]
mov dword [edi], ecx
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40f7a0
mov edx, dword [str.Foxit_Cloud]
mov ecx, dword [0x430698]
mov dword [eax], edx
mov edx, dword [0x43069c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4306a0]
mov dword [eax + 8], edx
mov edx, dword [0x4306a4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4306a8]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x218]
call fcn.00411870
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7f5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov esi, 0x437908
call fcn.0040c360
push 0
push esi
or eax, 0xffffffff
mov ecx, 0x437924
call fcn.00404b60
push 1
mov eax, 0x430670
mov ecx, 0x437924
call fcn.0040fa90
push 0xa
mov eax, str.svclog.txt
mov ecx, 0x437924
call fcn.0040fa90
push 0x437924
lea ecx, [ebp - 0x250]
call fcn.00411ab0
add esp, 4
mov edi, eax
mov esi, 0x437940
mov dword [ebp - 4], 0
call fcn.004061b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x23c], 0x10
jb 0x40f88c
mov edx, dword [ebp - 0x250]
push edx
call fcn.00412bf6
add esp, 4
mov eax, dword [0x437924]
mov esi, 8
cmp dword [0x437938], esi
jae 0x40f8a3
mov eax, 0x437924
push eax
call fcn.00411bf0
add esp, 4
test eax, eax
je 0x40f947
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x254], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x437924
or eax, 0xffffffff
call fcn.00404b60
lea ecx, [ebp - 0x234]
call fcn.00411cb0
mov eax, dword [ebp - 0x234]
add esp, 0x1c
cmp dword [ebp - 0x220], esi
jae 0x40f902
lea eax, [ebp - 0x234]
push eax
call fcn.004142b3
add esp, 4
test edx, edx
jl 0x40f930
jg 0x40f918
cmp eax, 0x200000
jb 0x40f930
mov ecx, dword [0x437924]
cmp dword [0x437938], esi
jae 0x40f92b
mov ecx, 0x437924
call fcn.00411fb0
cmp dword [ebp - 0x220], esi
jb 0x40f947
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00412bf6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412be7
mov esp, ebp
pop ebp
ret