Function at 0x452c20
Capabilities:
Check if file exists
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7075
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x511070]
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]
cmp dword [edi + 0x14], 8
jb 0x452c5b
mov ecx, dword [edi]
jmp 0x452c5d
mov ecx, edi
call fcn.0048a400
test eax, eax
je 0x453552
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x452cbd
xor ecx, ecx
jmp 0x452cd5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452cc6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00439160
push str.TencentTXSSOBin
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.0048eea0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x452e07
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x452d37
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x298], esi
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 2
push eax
push 0x20019
push 0
push str.SOFTWARETencentTXSSO
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x294], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x452dd0
lea eax, [ebp - 0x298]
push eax
push str.Version
lea ecx, [ebp - 0x294]
call fcn.00440780
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004386d0
push str.TencentTXSSO_
lea ecx, [ebp - 0x248]
call fcn.0048eea0
mov esi, dword [ebp - 0x298]
lea ecx, [ebp - 0x248]
push esi
call fcn.0048eea0
push 0x4f37ac
lea ecx, [ebp - 0x248]
call fcn.0048eea0
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x452de1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x294], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x452e07
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.SrcSSODir__s
push 0x515488
call fcn.0048d710
mov ecx, dword [ebp - 0x238]
add esp, 0xc
cmp ecx, 1
jb 0x452e77
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x4ec68c]
je 0x452e77
add eax, 2
cmp eax, 4
jb 0x452e54
push 1
push str.0s
lea ecx, [ebp - 0x248]
call fcn.004402a0
mov ecx, edi
call fcn.0048eb60
push 0x19
xor eax, eax
mov dword [ebp - 0x24c], 7
push str.npSSOAxCtrlForPTLogin.dll
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00439160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
push 0x19
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.npSSOAxCtrlForPTLogin.dll
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00439160
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x452eee
mov edx, dword [edi]
jmp 0x452ef0
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.00438720
mov ebx, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
push eax
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x278]
call fcn.00438720
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x452f3b
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x452f43
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452f58
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x452f76
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x452fb1
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x452fec
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x45302a
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433600
push 0xd
xor eax, eax
mov dword [ebp - 0x24c], 7
push str.SSOCommon.dll
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00439160
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
push 0xd
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.SSOCommon.dll
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00439160
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x45309a
mov edx, dword [edi]
jmp 0x45309c
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.00438720
mov ebx, eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
push eax
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.00438720
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x4530e7
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x4530ef
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453104
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x453122
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x45315d
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x453198
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4531d6
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433600
push 0x11
xor eax, eax
mov dword [ebp - 0x24c], 7
push str.SSOLUIControl.dll
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00439160
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x230]
push 0x11
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.SSOLUIControl.dll
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00439160
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x453246
mov edx, dword [edi]
jmp 0x453248
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.00438720
mov ebx, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
push eax
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.00438720
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x453293
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x45329b
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4532b4
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call ebx
jmp 0x4532ba
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x4532d8
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x453313
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x45334e
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x45338c
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433600
push 0xf
xor eax, eax
mov dword [ebp - 0x24c], 7
push str.SSOPlatform.dll
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.00439160
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x230]
push 0xf
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.SSOPlatform.dll
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00439160
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x14], 8
jb 0x4533fa
mov edi, dword [edi]
lea eax, [ebp - 0x260]
mov edx, edi
push eax
lea ecx, [ebp - 0x278]
call fcn.00438720
mov edi, eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
push eax
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.00438720
add esp, 8
mov esi, eax
cmp dword [edi + 0x14], 8
jb 0x453447
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x45344f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453460
push 0
push edi
push esi
call ebx
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x45347e
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4534b9
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x4534f4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x45352f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433600
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x45354d
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00433600
mov eax, 1
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.004a5d13
mov esp, ebp
pop ebp
ret 4