Function at 0x4529f0
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 0x4d6a75
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 0x452a2b
mov ecx, dword [edi]
jmp 0x452a2d
mov ecx, edi
call fcn.00489ee0
test eax, eax
je 0x453322
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a83c0
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 0x452a8d
xor ecx, ecx
jmp 0x452aa5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452a96
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.0048e980
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 0x452bd7
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x452b07
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 0x452ba0
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.0048e980
mov esi, dword [ebp - 0x298]
lea ecx, [ebp - 0x248]
push esi
call fcn.0048e980
push 0x4f36f4
lea ecx, [ebp - 0x248]
call fcn.0048e980
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x452bb1
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 0x452bd7
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.0048d1f0
mov ecx, dword [ebp - 0x238]
add esp, 0xc
cmp ecx, 1
jb 0x452c47
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 0x452c47
add eax, 2
cmp eax, 4
jb 0x452c24
push 1
push str.0s
lea ecx, [ebp - 0x248]
call fcn.004402a0
mov ecx, edi
call fcn.0048e640
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 0x452cbe
mov edx, dword [edi]
jmp 0x452cc0
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 0x452d0b
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x452d13
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452d28
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x452d46
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 0x452d81
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 0x452dbc
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 0x452dfa
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 0x452e6a
mov edx, dword [edi]
jmp 0x452e6c
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 0x452eb7
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x452ebf
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452ed4
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x452ef2
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 0x452f2d
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 0x452f68
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 0x452fa6
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 0x453016
mov edx, dword [edi]
jmp 0x453018
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 0x453063
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x45306b
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453084
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call ebx
jmp 0x45308a
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x4530a8
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 0x4530e3
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 0x45311e
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 0x45315c
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 0x4531ca
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 0x453217
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x45321f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453230
push 0
push edi
push esi
call ebx
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x45324e
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 0x453289
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 0x4532c4
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 0x4532ff
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433600
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x45331d
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.004a578d
mov esp, ebp
pop ebp
ret 4