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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2a88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x50ac94]
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.00424240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00469440
add esp, 8
cmp eax, ebx
jne 0x4542e2
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.00468700
add esp, 0x10
call fcn.00452240
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 0x454286
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 0x4542a8
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 0x4542ce
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 0x4e1e78
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4df5f8
call fcn.004ae67a
add esp, 4
push eax
push 0x4df5f8
mov ecx, 0x510130
call fcn.004241cf
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push ebx
push str.PATHTREE_Initialize__s_
push edx
call fcn.00468700
add esp, 0xc
call fcn.00488300
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 [0x51011c], edi
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x45443f
lea edx, [ebp - 0x4c]
push edx
mov esi, 0x510124
call fcn.0046f760
add esp, 4
push ebx
push 0x510120
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 0x45443f
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.00468700
add esp, 0xc
call fcn.00452240
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 0x4543df
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 0x454401
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 0x4542ce
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 [0x510148]
mov eax, dword [0x51014c]
mov esi, ecx
cmp ecx, eax
jbe 0x454460
call fcn.004ae7f1
mov eax, dword [0x51014c]
mov ecx, dword [0x510148]
mov edx, dword [0x51013c]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], esi
test eax, eax
ja 0x4545c6
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 0x4549be
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov esi, esp
push eax
call fcn.00424240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046bda0
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4ddc20
call fcn.004235bf
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.AppVirtDll.dll
call fcn.004235bf
push ecx
mov edx, esp
mov dword [ebp - 0x2c], esp
push edx
mov byte [ebp - 4], 7
call fcn.004673c0
add esp, 4
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00468250
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.00424240
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.00424240
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.004235bf
mov byte [ebp - 4], bl
call fcn.0047e440
add esp, 0xc
test eax, eax
jne 0x45494f
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.004235bf
push esi
call fcn.00467d00
add esp, 8
call fcn.0046b080
add esp, 4
test eax, eax
je 0x45458d
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.00424240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00493240
add esp, 0x10
jmp 0x45497d
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
cmp edx, ebx
jne 0x454606
call fcn.004ae7f1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4545de
call fcn.004ae7f1
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 0x45460a
cmp eax, dword [esi]
jne 0x45460a
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x454645
mov eax, dword [edx]
jmp 0x4545d4
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 0x45492c
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.004ae100
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x454664
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042156b
mov esi, dword [ebp - 0x18]
mov edx, dword [0x510110]
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 [0x510108]
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 0x510100
mov dword [ebp - 0x14], edi
call fcn.00488540
mov eax, dword [0x510110]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.00498080
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, edi
je 0x454890
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 0x4546f3
cmp eax, dword [edi]
jne 0x4546f3
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x45472e
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 0x45492c
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.004ae100
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.0049ff8a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x454931
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 0x454850
test ebx, 0xffff0000
jne 0x454854
movzx esi, bx
push esi
call fcn.004a7eac
mov edi, eax
test edi, edi
je 0x454866
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 0x454866
push esi
push eax
push edi
call fcn.004216d6
mov esi, eax
add esp, 0xc
test esi, esi
je 0x454866
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 0x4547e4
push edi
mov ecx, ebx
call fcn.004214f5
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x4547fe
push esi
call fcn.004ae67a
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.004ae100
add esp, 0x10
cmp eax, 0x50
ja case.0x454826.1
movzx ecx, byte [eax + 0x454a50]
jmp dword [ecx*4 + 0x454a40]
test edi, edi
jl 0x454945
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x454945
mov ecx, dword [ebp - 0x2c]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x454866
xor eax, eax
jmp 0x45485d
push ebx
call fcn.004ae67a
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.004241cf
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x68]
push eax
push 0x510100
mov byte [ebp - 4], 3
call fcn.00452d50
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.004ae65b
add esp, 8
test eax, eax
jl 0x454945
cmp eax, dword [esi - 8]
jg 0x454945
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 0x51013c
call fcn.00450570
mov edi, dword [0x510148]
cmp edi, dword [0x51014c]
jbe 0x4548e0
call fcn.004ae7f1
mov eax, dword [0x51013c]
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 0x45490b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x51014c]
sub ecx, dword [0x510148]
xor ebx, ebx
sar ecx, 2
test ecx, ecx
ja 0x4545c0
mov edi, dword [ebp - 0x1c]
jmp 0x454479
call fcn.00421560
push 0x80004005
call fcn.00421000
call fcn.004a04f2
call fcn.004a052a
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.00468700
add esp, 0x10
call fcn.00452240
add esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [0x510120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call fcn.00469b50
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 0x4549be
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 0x4549e1
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 0x454a04
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 0x454a2a
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