Function at 0x40a320
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b567d
mov eax, dword fs:[0]
push eax
mov eax, 0x12cc
call fcn.004774d0
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x12c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x12e0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12f0]
mov ebp, dword [esp + 0x12f4]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x28], fcn.00470104
mov dword [esp + 0x2c], fcn.00470421
mov dword [esp + 0x30], fcn.00470027
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x8000
mov dword [esp + 0x24], 0x4c36dc
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], al
mov dword [esp + 0x12e8], eax
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x4c]
call fcn.0041ead0
lea ecx, [esp + 0x174]
call fcn.0041ead0
lea ecx, [esp + 0x29c]
call fcn.0041ead0
lea ecx, [esp + 0x174]
push ecx
push ecx
mov byte [esp + 0x12f0], 4
call fcn.00401760
add esp, 4
lea ebx, [esp + 0x2a0]
lea edi, [esp + 0x50]
mov esi, eax
call fcn.0045a460
test al, al
je 0x40a851
push 0x206
xor esi, esi
lea eax, [esp + 0x6d2]
xor edx, edx
push esi
push eax
mov word [esp + 0x6d8], dx
call fcn.00476c30
add esp, 0xc
lea ecx, [esp + 0x6cc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a85a
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x6d0]
push 0x104
push eax
call fcn.00471f8e
add esp, 0xc
push str..ini
lea ecx, [esp + 0x6d0]
push 0x104
push ecx
call fcn.00471f8e
add esp, 0xc
lea edx, [esp + 0x6cc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x7e
lea ecx, [esp + 0x44a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x450], ax
call fcn.00476c30
mov eax, dword [ebp]
add esp, 0xc
lea edx, [esp + 0x444]
push edx
push eax
call fcn.00401760
mov ecx, eax
lea eax, [esp + 0x20]
call fcn.00459ca0
test al, al
je 0x40a851
push 0x7fe
lea edx, [esp + 0xae2]
xor ecx, ecx
push esi
push edx
mov word [esp + 0xae8], cx
call fcn.00476c30
add esp, 0xc
cmp byte [esp + 0x290], 0
lea edx, [esp + 0x180]
jne 0x40a501
mov edx, dword [esp + 0x17c]
cmp byte [esp + 0x3b8], 0
lea ecx, [esp + 0x2a8]
jne 0x40a519
mov ecx, dword [esp + 0x2a4]
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x40a52b
mov eax, dword [esp + 0x54]
mov edi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x10]
push edi
lea edi, [esp + 0x44c]
push edi
add edx, 4
push edx
add ecx, 4
push ecx
add eax, 4
push eax
push str.http:__config.pinyin.sogou.com_components_update.php_h_sv_sr_sutp2b0_s__spn_s
lea eax, [esp + 0xaf8]
push 0x400
push eax
call fcn.0046fdbd
add esp, 0x24
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x6d4]
push eax
lea ecx, [esp + 0xae8]
push ecx
lea ecx, [esp + 0x30]
mov edx, str.SogouComponentAgent
mov dword [esp + 0x30], esi
mov byte [esp + 0x27], 0
mov dword [esp + 0x54], esi
call fcn.0040da20
add esp, 0x10
test al, al
je 0x40a85a
lea edx, [esp + 0x6cc]
push edx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.00421cf0
test al, al
je 0x40a851
push 0x4cc124
mov ecx, 0x4cc124
lea eax, [esp + 0x28]
call fcn.00421ad0
cmp eax, esi
je 0x40a85a
push 0x4cc134
push eax
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x40a85a
push 0x4cc068
mov ecx, str.MODULE
lea eax, [esp + 0x28]
call fcn.00421ad0
cmp eax, esi
je 0x40a85a
push eax
call fcn.00471773
mov ebx, eax
add esp, 4
cmp ebx, esi
jle 0x40a85a
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x3ce]
push ecx
mov word [esp + 0x3d0], ax
call fcn.00476c30
add esp, 0xc
push esi
push str.bundle_d
lea edx, [esp + 0x3cc]
push 0x40
push edx
call fcn.0046fdbd
add esp, 0x10
push 0x4cc138
lea ecx, [esp + 0x3c8]
lea eax, [esp + 0x28]
call fcn.00421ad0
test eax, eax
je 0x40a695
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40a670
sub ecx, edi
sar ecx, 1
cmp ecx, 0x40
ja 0x40a695
mov ecx, dword [ebp]
push ecx
push eax
call fcn.0046ff94
add esp, 8
test eax, eax
je 0x40a69f
inc esi
cmp esi, ebx
jl 0x40a61d
jmp 0x40a85a
push 0x4cc174
lea ecx, [esp + 0x3c8]
lea eax, [esp + 0x28]
call fcn.00421ad0
mov esi, eax
push 0x4cc180
lea ecx, [esp + 0x3c8]
lea eax, [esp + 0x28]
call fcn.00421ad0
mov edi, eax
push str.downloadtype
lea ecx, [esp + 0x3c8]
lea eax, [esp + 0x28]
call fcn.00421ad0
mov ebx, eax
push str.sharetime
lea ecx, [esp + 0x3c8]
lea eax, [esp + 0x28]
call fcn.00421ad0
mov dword [esp + 0x20], eax
test esi, esi
je 0x40a85a
test edi, edi
je 0x40a85a
push esi
call fcn.0047205c
add esp, 4
push edi
mov dword [ebp + 0x14], eax
call fcn.0047205c
xor esi, esi
add esp, 4
mov dword [ebp + 0x18], eax
cmp ebx, esi
je 0x40a739
push ebx
call fcn.00471773
add esp, 4
mov dword [ebp + 0x30], eax
jmp 0x40a73c
mov dword [ebp + 0x30], esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x40a752
push eax
call fcn.00471773
add esp, 4
mov dword [ebp + 0x34], eax
jmp 0x40a755
mov dword [ebp + 0x34], esi
cmp dword [ebp + 0x2c], esi
jne 0x40a7ee
push 0x206
lea eax, [esp + 0x8da]
xor edx, edx
push esi
push eax
mov word [esp + 0x8e0], dx
call fcn.00476c30
add esp, 0xc
lea ecx, [esp + 0x8d4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x206
lea eax, [esp + 0x4ca]
xor edx, edx
push esi
push eax
mov word [esp + 0x4d0], dx
call fcn.00476c30
add esp, 0xc
lea ecx, [esp + 0x4c4]
push ecx
push esi
push str.sgbdl_
lea edx, [esp + 0x8e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x4c4]
push ecx
call fcn.0047205c
add esp, 4
mov dword [ebp + 0x2c], eax
lea ecx, [esp + 0x29c]
call fcn.0041ec80
lea ecx, [esp + 0x174]
call fcn.0041ec80
lea ecx, [esp + 0x4c]
call fcn.0041ec80
lea ecx, [esp + 0x18]
call fcn.0041a420
mov dword [esp + 0x12e8], 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0x4c345c
cmp eax, esi
je 0x40a84a
mov edx, dword [eax + 4]
push eax
mov dword [esp + 0x38], edx
call dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, esi
jne 0x40a833
mov al, 1
jmp 0x40a9f0
lea ecx, [esp + 0x18]
call fcn.0041a4d0
mov eax, dword [esp + 0x48]
push ebp
push eax
call fcn.0040b000
mov ecx, dword [ebp]
push str.FetionComBundle
push ecx
call fcn.0046ff94
add esp, 8
mov esi, 0x4d4d70
test eax, eax
jne 0x40a938
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x8de]
push eax
mov word [esp + 0x8e0], dx
call fcn.00476c30
add esp, 0xc
call fcn.0046cf90
add eax, 0x870
push eax
push str._sSGTool.exe
lea ecx, [esp + 0x8dc]
push 0x104
push ecx
call fcn.0046fdbd
add esp, 0x10
lea ecx, [esp + 0x4c4]
call fcn.0041ead0
lea eax, [esp + 0x8d4]
lea edx, [esp + 0x4c4]
call fcn.0041ed00
push 5
push str.__line_2__border_0__smarthint__p_3_
lea edx, [esp + 0x20]
push edx
mov edx, 0x4cb53c
lea ecx, [esp + 0x4d0]
mov byte [esp + 0x12f4], 6
call fcn.0041d840
cmp byte [esp + 0x5e0], 0
mov dword [esp + 0x4c4], esi
jne 0x40a938
mov eax, dword [esp + 0x4cc]
lea ecx, [esp + 0x4d0]
cmp eax, ecx
je 0x40a938
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x3b8], 0
mov dword [esp + 0x29c], esi
jne 0x40a964
mov eax, dword [esp + 0x2a4]
lea edx, [esp + 0x2a8]
cmp eax, edx
je 0x40a964
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x290], 0
mov dword [esp + 0x174], esi
jne 0x40a990
mov eax, dword [esp + 0x17c]
lea ecx, [esp + 0x180]
cmp eax, ecx
je 0x40a990
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x168], 0
mov dword [esp + 0x4c], esi
jne 0x40a9b3
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x58]
cmp eax, edx
je 0x40a9b3
push eax
call fcn.00470027
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0041a420
mov dword [esp + 0x12e8], 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0x4c345c
test eax, eax
je 0x40a9ee
mov ecx, dword [eax + 4]
push eax
mov dword [esp + 0x38], ecx
call dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x40a9d7
xor al, al
mov ecx, dword [esp + 0x12e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c8]
xor ecx, esp
call fcn.0046fdae
add esp, 0x12d8
ret 8