Function at 0x429cf9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
test byte [0x565c80], 1
mov dword [ebp - 0x478], ebx
jne 0x429d67
or dword [0x565c80], 1
xor eax, eax
push 0x51bbfd
mov dword [0x565c38], 7
mov dword [0x565c34], ebx
mov word [0x565c24], ax
call fcn.00403649
add esp, 4
cmp dword [0x565c34], ebx
jne 0x429f71
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.00402e70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x43c], dx
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429dd9
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040392d
push 0xa
push 0xffffffffffffffff
push 0x529e7c
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], ebx
call fcn.00404d73
mov esi, 8
cmp eax, 0xffffffff
je 0x429ea1
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.00402e70
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x429ea1
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x458]
call fcn.0040bc49
push 0x11
push str.Kingsoftoffice6
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405221
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00404e84
mov byte [ebp - 4], bl
cmp dword [ebp - 0x444], esi
jb 0x429ea1
mov edx, dword [ebp - 0x458]
push edx
call fcn.00404f7d
add esp, 4
push 1
xor eax, eax
push 0x520f74
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
call fcn.0040392d
push 0x528540
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x458]
push edx
mov byte [ebp - 4], 2
call fcn.00405b23
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.0040511f
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x565c24
call fcn.00404e84
cmp dword [ebp - 0x444], esi
jb 0x429f23
mov eax, dword [ebp - 0x458]
push eax
call fcn.00404f7d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], cx
cmp dword [ebp - 0x460], esi
jb 0x429f53
mov edx, dword [ebp - 0x474]
push edx
call fcn.00404f7d
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x429f71
mov eax, dword [ebp - 0x43c]
push eax
call fcn.00404f7d
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], cx
push 0x565c24
mov ecx, edi
call fcn.00404e84
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 4