Function at 0x450800
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 0x4d54d5
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 0x45083b
mov ecx, dword [edi]
jmp 0x45083d
mov ecx, edi
call fcn.00488900
test eax, eax
je 0x451132
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a73c0
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 0x45089d
xor ecx, ecx
jmp 0x4508b5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4508a6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004393e0
push str.TencentTXSSOBin
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.0048d880
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 0x4509e7
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x450917
push 0x80004005
call fcn.0041ce60
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 0x4509b0
lea eax, [ebp - 0x298]
push eax
push str.Version
lea ecx, [ebp - 0x294]
call fcn.0043fa60
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00438950
push str.TencentTXSSO_
lea ecx, [ebp - 0x248]
call fcn.0048d880
mov esi, dword [ebp - 0x298]
lea ecx, [ebp - 0x248]
push esi
call fcn.0048d880
push 0x4f2bac
lea ecx, [ebp - 0x248]
call fcn.0048d880
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x4509c1
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 0x4509e7
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 0x515408
call fcn.0048c0f0
mov ecx, dword [ebp - 0x238]
add esp, 0xc
cmp ecx, 1
jb 0x450a57
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 + 0x4eb68c]
je 0x450a57
add eax, 2
cmp eax, 4
jb 0x450a34
push 1
push str.0s
lea ecx, [ebp - 0x248]
call fcn.0043f580
mov ecx, edi
call fcn.0048d540
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.004393e0
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.004393e0
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x450ace
mov edx, dword [edi]
jmp 0x450ad0
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x290]
call fcn.004389a0
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.004389a0
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x450b1b
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x450b23
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450b38
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x450b56
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433850
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 0x450b91
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433850
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 0x450bcc
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433850
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 0x450c0a
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433850
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.004393e0
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.004393e0
mov byte [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x450c7a
mov edx, dword [edi]
jmp 0x450c7c
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.004389a0
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.004389a0
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x450cc7
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x450ccf
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450ce4
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x450d02
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433850
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 0x450d3d
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433850
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 0x450d78
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433850
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 0x450db6
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433850
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.004393e0
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.004393e0
mov byte [ebp - 4], 0xa
cmp dword [edi + 0x14], 8
jb 0x450e26
mov edx, dword [edi]
jmp 0x450e28
mov edx, edi
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.004389a0
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.004389a0
add esp, 8
mov esi, eax
cmp dword [ebx + 0x14], 8
jb 0x450e73
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x450e7b
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450e94
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call ebx
jmp 0x450e9a
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x450eb8
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433850
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 0x450ef3
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433850
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 0x450f2e
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433850
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 0x450f6c
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433850
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.004393e0
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.004393e0
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x14], 8
jb 0x450fda
mov edi, dword [edi]
lea eax, [ebp - 0x260]
mov edx, edi
push eax
lea ecx, [ebp - 0x278]
call fcn.004389a0
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.004389a0
add esp, 8
mov esi, eax
cmp dword [edi + 0x14], 8
jb 0x451027
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x45102f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451040
push 0
push edi
push esi
call ebx
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x45105e
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00433850
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 0x451099
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00433850
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 0x4510d4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433850
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 0x45110f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00433850
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x45112d
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00433850
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.004a474b
mov esp, ebp
pop ebp
ret 4