Function at 0x454670
Capabilities:
Check mutex on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3928
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004699c0
add esp, 8
cmp eax, ebx
jne 0x454792
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push edx
push str.RegDiff_PostScan:_CreateNewFile__s__failed__LE_d
push ecx
call fcn.00468c80
add esp, 0x10
call fcn.004526f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454758
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45477e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0x4e2ea8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4e0608
call fcn.004af97a
add esp, 4
push eax
push 0x4e0608
mov ecx, 0x512130
call fcn.0042423a
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push ebx
push str.PATHTREE_Initialize__s_
push edx
call fcn.00468c80
add esp, 0xc
call fcn.004895c0
add esp, 4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, 0x5c
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x50], ax
mov dword [ebp - 0x68], ebx
mov dword [0x51211c], edi
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x4548ef
lea edx, [ebp - 0x4c]
push edx
mov esi, 0x512124
call fcn.00470620
add esp, 4
push ebx
push 0x512120
push esi
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4548ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.RegDiff_PostScan:_ExportHive_key_creation_failed__LE_d
push ecx
call fcn.00468c80
add esp, 0xc
call fcn.004526f0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45488f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4548b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45477e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x512148]
mov eax, dword [0x51214c]
mov esi, ecx
cmp ecx, eax
jbe 0x454910
call fcn.004afaf1
mov eax, dword [0x51214c]
mov ecx, dword [0x512148]
mov edx, dword [0x51213c]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], esi
test eax, eax
ja 0x454a76
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
cmp dword [eax - 0xc], ebx
je 0x454e6e
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046cc40
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4dec30
call fcn.004235f2
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.AppVirtDll.dll
call fcn.004235f2
push ecx
mov edx, esp
mov dword [ebp - 0x2c], esp
push edx
mov byte [ebp - 4], 7
call fcn.00467940
add esp, 4
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004687d0
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.SoftwareCameyoPackagerVirtReg
mov byte [ebp - 4], 0xa
call fcn.004235f2
mov byte [ebp - 4], bl
call fcn.0047f770
add esp, 0xc
test eax, eax
jne 0x454dff
push ecx
mov dword [ebp - 0x34], esp
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.VirtRegHiveDbg
call fcn.004235f2
push esi
call fcn.00468280
add esp, 8
call fcn.0046bf20
add esp, 4
test eax, eax
je 0x454a3d
mov eax, dword [ebp + 0xc]
push 0
push str.About_to_save
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 2
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00494540
add esp, 0x10
jmp 0x454e2d
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
cmp edx, ebx
jne 0x454ab6
call fcn.004afaf1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x454a8e
call fcn.004afaf1
mov esi, dword [esi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x454aba
cmp eax, dword [esi]
jne 0x454aba
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x454af5
mov eax, dword [edx]
jmp 0x454a84
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x454ddc
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004af400
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x454b14
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042159d
mov esi, dword [ebp - 0x18]
mov edx, dword [0x512110]
push 0xffffffffffffffff
xor edi, edi
push edx
lea ebx, [esi + 2]
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
mov edx, dword [0x512108]
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push edi
push ecx
push edi
push edx
push ebx
push 0x512100
mov dword [ebp - 0x14], edi
call fcn.00489800
mov eax, dword [0x512110]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.00499380
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x454d40
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x24], esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x454ba3
cmp eax, dword [edi]
jne 0x454ba3
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x454bde
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x454ddc
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.004af400
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add esi, 0x10
mov dword [ecx], esi
push ecx
mov esi, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x24], esi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x454de1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
test ebx, ebx
je 0x454d00
test ebx, 0xffff0000
jne 0x454d04
movzx esi, bx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x454d16
mov ecx, esi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x454d16
push esi
push eax
push edi
call fcn.00421708
mov esi, eax
add esp, 0xc
test esi, esi
je 0x454d16
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x454c94
push edi
mov ecx, ebx
call fcn.00421527
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x454cae
push esi
call fcn.004af97a
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
push edx
lea ecx, [edi + edi]
push esi
push ecx
push eax
mov dword [ebp - 0x2c], ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x454cd6.1
movzx ecx, byte [eax + 0x454f00]
jmp dword [ecx*4 + 0x454ef0]
test edi, edi
jl 0x454df5
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x454df5
mov ecx, dword [ebp - 0x2c]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x454d16
xor eax, eax
jmp 0x454d0d
push ebx
call fcn.004af97a
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.0042423a
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x68]
push eax
push 0x512100
mov byte [ebp - 4], 3
call fcn.00453200
mov ecx, dword [ebp - 0x30]
add esp, 0x18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x454df5
cmp eax, dword [esi - 8]
jg 0x454df5
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x48]
push edx
push 0x51213c
call fcn.00450a80
mov edi, dword [0x512148]
cmp edi, dword [0x51214c]
jbe 0x454d90
call fcn.004afaf1
mov eax, dword [0x51213c]
mov dword [ebp - 0x3c], eax
lea eax, [esi - 0x10]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x51214c]
sub ecx, dword [0x512148]
xor ebx, ebx
sar ecx, 2
test ecx, ecx
ja 0x454a70
mov edi, dword [ebp - 0x1c]
jmp 0x454929
call fcn.00421592
push 0x80004005
call fcn.00421000
call fcn.004a17ee
call fcn.004a1826
push 0x80070057
call fcn.00421000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
push edx
push str.RegDiff_PostScan:_MyRegSaveKey__s__failed__LE_d
push ecx
call fcn.00468c80
add esp, 0x10
call fcn.004526f0
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [0x512120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call fcn.0046a0d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454e6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454e91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454eda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret