Function at 0x418400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de287
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x53d9f8]
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 ebx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov eax, dword [0x53d168]
cmp eax, 0xffffffff
jne 0x41859a
lea eax, [ebp - 0x248]
push 0x1b
push eax
call fcn.00416f00
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x41848f
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov ecx, edx
mov byte [ebp - 4], 2
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4184b5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.004033b0
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x418511
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418507
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41857f
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
push eax
push str.USBVersion
push str.Local
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004168c0
mov edx, dword [ebp - 0x24c]
mov dword [0x53d168], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x418594
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418585
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418585
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
mov eax, dword [0x53d168]
add esp, 8
mov ecx, dword [ebp - 0x264]
test eax, eax
je 0x4186b7
lea eax, [ebp - 0x248]
push 1
push eax
call fcn.00418ca0
add esp, 8
push 4
push str.das
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.00403230
mov byte [ebp - 4], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x26c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x268], ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x26c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x22c], edx
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], eax
cmp edx, 8
jb 0x41866f
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418665
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418665
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
cmp dword [ebp - 0x264], 0
mov edx, str._allusers_appdata
mov eax, str.user_appdata
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x418690
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418690
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00403230
mov ebx, dword [ebp - 0x270]
jmp 0x418771
test ecx, ecx
je 0x418714
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4186f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004033b0
jmp 0x418771
lea eax, [ebp - 0x248]
push eax
call fcn.004db110
add esp, 4
lea ecx, [ebp - 0x230]
push eax
call fcn.00405210
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x418771
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418767
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418767
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x4187cc
push str._GetAppDataDir_Failed_
push str.kupdate::KPathUtil::_GetAppDataDir
push 0x76
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKPathUtil.cpp
push esi
call fcn.00412750
mov eax, dword [ebp - 0x230]
add esp, 0x14
mov ecx, dword [ebp - 0x22c]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x228]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x224]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], ecx
jmp 0x41883b
call fcn.004d6ef0
test al, al
je 0x4187e1
mov eax, str.kingsoftPDF
mov ecx, 0xd
jmp 0x4187eb
mov eax, str.kingsoftoffice6
mov ecx, 0x11
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403230
mov eax, dword [ebp - 0x230]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x220]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebx + 0x14], eax
mov eax, ebx
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.004bee49
mov esp, ebp
pop ebp
ret