Function at 0x4187b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500acc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x567e00]
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 esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov eax, dword [0x567448]
cmp eax, 0xffffffff
jne 0x41894f
lea eax, [ebp - 0x248]
push 0x1d
push eax
call fcn.00417040
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x41883d
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov ecx, edx
mov byte [ebp - 4], 2
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418870
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x260]
call fcn.00403a70
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4188cc
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4188c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41893a
push edx
push ecx
call fcn.004c6f6f
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.00416b20
mov edx, dword [ebp - 0x24c]
mov dword [0x567448], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x41894f
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418940
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
mov eax, dword [0x567448]
add esp, 8
test eax, eax
je 0x418ab1
lea eax, [ebp - 0x260]
push 1
push eax
call fcn.004190c0
push str.das
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040e0e0
mov ecx, eax
add esp, 0x14
lea eax, [ebp - 0x230]
cmp eax, ecx
je 0x4189d8
mov eax, dword [ecx]
mov dword [ebp - 0x230], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x418a14
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418a66
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x418a76
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418a6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418a6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
test ebx, ebx
mov edx, str._allusers_appdata
mov eax, str.user_appdata
cmove edx, eax
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a90
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.004038f0
jmp 0x418b68
test ebx, ebx
je 0x418b0b
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418ae7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403a70
jmp 0x418b68
lea eax, [ebp - 0x248]
push eax
call fcn.004e73b0
add esp, 4
lea ecx, [ebp - 0x230]
push eax
call fcn.00405690
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x418b68
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418b5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418b5e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edi, dword [ebp - 0x220]
test edi, edi
jne 0x418bc5
push str._GetAppDataDir_Failed_
push str.kupdate::KPathUtil::_GetAppDataDir
push 0x79
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKPathUtil.cpp
push edi
call fcn.00412230
mov eax, dword [ebp - 0x230]
add esp, 0x14
mov ecx, dword [ebp - 0x22c]
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x228]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x224]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
jmp 0x418c3a
call fcn.004e2050
test al, al
je 0x418bda
mov eax, str.kingsoftPDF
mov ecx, 0xd
jmp 0x418be4
mov eax, str.kingsoftoffice6
mov ecx, 0x11
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004038f0
mov eax, dword [ebp - 0x230]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x22c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x14], eax
mov eax, esi
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.004c6f8b
mov esp, ebp
pop ebp
ret