Function at 0x47d210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e781
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5fb61c]
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
xor edi, edi
push 0x206
mov esi, ecx
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x42c], edi
mov word [ebp - 0x218], ax
call fcn.005336c0
add esp, 0xc
push edi
push 0x23
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00422540
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], edi
call fcn.00422540
push str.Delete_product_files_...
push 0x5ff5f8
mov byte [ebp - 4], 1
call fcn.00477930
mov edx, dword [esi + 0x10]
lea eax, [esi + 0x10]
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [edx - 0xc], edi
je 0x47d655
mov ebx, dword [esi + 0x8c]
add ebx, dword [esi + 0x80]
mov eax, dword [esi + 0x58]
add ebx, dword [esi + 0x74]
mov dword [ebp - 0x428], edi
add ebx, dword [esi + 0x68]
mov ecx, dword [eax]
add ebx, dword [esi + 0x5c]
mov dword [ebp - 0x424], ecx
cmp ecx, eax
je 0x47d39a
lea ecx, [ecx]
push ebx
inc edi
push edi
mov ecx, 0x5ffb58
call fcn.00496b10
mov eax, dword [esi + 0x54]
test eax, eax
je 0x47d31f
mov ecx, dword [esi + 0x28]
push ecx
push ebx
push edi
call eax
add esp, 0xc
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 8]
push eax
mov eax, dword [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.00423670
mov ecx, dword [ebp - 0x430]
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x42c]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.0045ba00
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x424]
mov eax, dword [ecx]
mov dword [ebp - 0x424], eax
cmp eax, dword [esi + 0x58]
jne 0x47d300
mov eax, dword [esi + 0x70]
mov ecx, dword [eax]
mov dword [ebp - 0x424], ecx
cmp ecx, eax
je 0x47d404
lea esp, [esp]
push ebx
inc edi
push edi
mov ecx, 0x5ffb58
call fcn.00496b10
mov eax, dword [esi + 0x54]
test eax, eax
je 0x47d3cf
mov edx, dword [esi + 0x28]
push edx
push ebx
push edi
call eax
add esp, 0xc
mov eax, dword [ebp - 0x424]
mov eax, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x42c]
push edx
push eax
call fcn.0045ba00
mov eax, dword [ebp - 0x424]
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x424], eax
cmp eax, dword [esi + 0x70]
jne 0x47d3b0
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov dword [ebp - 0x424], ecx
cmp ecx, eax
je 0x47d473
cmp dword [esi + 0x20], 0
jne 0x47d473
push ebx
inc edi
push edi
mov ecx, 0x5ffb58
call fcn.00496b10
mov eax, dword [esi + 0x54]
test eax, eax
je 0x47d43b
mov ecx, dword [esi + 0x28]
push ecx
push ebx
push edi
call eax
add esp, 0xc
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x42c]
push edx
push eax
call fcn.0045ba00
mov eax, dword [ebp - 0x424]
mov eax, dword [eax]
add esp, 0xc
mov dword [ebp - 0x424], eax
cmp eax, dword [esi + 0x88]
jne 0x47d416
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
mov dword [ebp - 0x424], ecx
cmp ecx, eax
je 0x47d55d
push ebx
inc edi
push edi
mov ecx, 0x5ffb58
call fcn.00496b10
mov eax, dword [esi + 0x54]
test eax, eax
je 0x47d4a5
mov ecx, dword [esi + 0x28]
push ecx
push ebx
push edi
call eax
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.005336c0
mov ecx, dword [ebp - 0x424]
mov eax, dword [ecx + 8]
mov edx, dword [ebp - 0x43c]
add eax, 4
push eax
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.00423670
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x420]
jmp 0x47d4f0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x47d4f0
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d523
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [ebp - 0x420]
push 1
push ecx
call fcn.00470610
add esp, 0xc
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x47d546
inc dword [ebp - 0x428]
mov edx, dword [ebp - 0x424]
mov eax, dword [edx]
mov dword [ebp - 0x424], eax
cmp eax, dword [esi + 0x64]
jne 0x47d486
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax]
mov dword [ebp - 0x424], ecx
cmp ecx, eax
je 0x47d5cb
lea esp, [esp]
push ebx
inc edi
push edi
mov ecx, 0x5ffb58
call fcn.00496b10
mov eax, dword [esi + 0x54]
test eax, eax
je 0x47d58f
mov ecx, dword [esi + 0x28]
push ecx
push ebx
push edi
call eax
add esp, 0xc
mov edx, dword [ebp - 0x424]
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
push 1
push 1
push eax
call fcn.00470610
add esp, 0xc
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x47d5b8
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
mov eax, dword [eax]
mov dword [ebp - 0x424], eax
cmp eax, dword [esi + 0x7c]
jne 0x47d570
push 0x11
push str.kingsoftoffice6
lea ecx, [ebp - 0x438]
call fcn.00422060
mov ecx, dword [ebp - 0x438]
push 1
push 0
push ecx
call fcn.00470930
add esp, 0xc
push 9
push str.kingsoft
lea ecx, [ebp - 0x434]
call fcn.00422060
mov edx, dword [ebp - 0x434]
push 1
push 0
push edx
call fcn.00470930
add esp, 0xc
cmp dword [ebp - 0x428], 0
jne 0x47d628
mov dword [ebp - 0x440], 1
mov esi, dword [ebp - 0x43c]
mov eax, dword [esi]
push 1
push 0
push eax
call fcn.00470930
mov eax, dword [esi]
push eax
push str.remove_empty_folder__ws
push 0x5ff5f8
call fcn.00477930
mov edi, dword [ebp - 0x440]
add esp, 0x18
push edi
push str.Delete_product_files_return:_d
push 0x5ff5f8
call fcn.00477930
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d68e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d6b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.005332ca
mov esp, ebp
pop ebp
ret