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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x512f18]
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 - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call fcn.004242c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004654d0
add esp, 8
cmp eax, ebx
jne 0x455362
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push edx
push str.RegDiff_PostScan:_CreateNewFile__s__failed__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
call fcn.00453ba0
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 0x455306
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 0x455328
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 0x45534e
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 - 0x24]
push ecx
push 4
push 0x4e1418
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4de948
call fcn.004ad5da
add esp, 4
push eax
push 0x4de948
mov ecx, 0x518ea0
call fcn.0042424f
push ecx
mov edx, esp
mov dword [ebp - 0x20], esp
push ebx
push str.PATHTREE_Initialize__s_
push edx
call fcn.00464a80
add esp, 0xc
call fcn.00480260
add esp, 4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, 0x5c
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 0x60], ebx
mov dword [0x518e8c], edi
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x4554bf
lea edx, [ebp - 0x44]
push edx
mov esi, 0x518e94
call fcn.0046b000
add esp, 4
push ebx
push 0x518e90
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 0x4554bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push str.RegDiff_PostScan:_ExportHive_key_creation_failed__LE_d
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.00453ba0
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 0x45545f
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 0x455481
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 0x45534e
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 [0x518eb8]
mov eax, dword [0x518ebc]
mov esi, ecx
cmp ecx, eax
jbe 0x4554e0
call fcn.004ad751
mov eax, dword [0x518ebc]
mov ecx, dword [0x518eb8]
mov edx, dword [0x518eac]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
test eax, eax
ja 0x455646
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
cmp dword [eax - 0xc], ebx
je 0x455912
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.004242c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00467aa0
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4dcf70
call fcn.00423607
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.AppVirtDll.dll
call fcn.00423607
push ecx
mov byte [ebp - 4], 7
mov edx, esp
mov dword [ebp - 0x14], esp
push edx
call fcn.00463e40
add esp, 4
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004645d0
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.004242c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.004242c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareCameyoPackagerVirtReg
call fcn.00423607
mov byte [ebp - 4], bl
call fcn.00477530
add esp, 0xc
test eax, eax
jne 0x4558a3
push ecx
mov dword [ebp - 0x28], esp
mov esi, esp
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.VirtRegHiveDbg
call fcn.00423607
push esi
call fcn.004642e0
add esp, 8
call fcn.004670b0
add esp, 4
test eax, eax
je 0x45560d
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 - 0x28], esp
mov esi, esp
push eax
call fcn.004242c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0048ac20
add esp, 0x10
jmp 0x4558d1
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ebx
cmp edx, ebx
jne 0x455686
call fcn.004ad751
xor edx, edx
cmp esi, dword [edx + 0x10]
jb 0x45565e
call fcn.004ad751
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 0x45568a
cmp eax, dword [esi]
jne 0x45568a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4556c5
mov edx, dword [edx]
jmp 0x455654
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x45588a
mov eax, dword [esi + 4]
mov dword [edi + 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, [edi + 0x10]
push eax
call fcn.004ad065
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x4556e4
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00421553
mov esi, dword [ebp - 0x20]
mov edx, dword [0x518e80]
push 0xffffffffffffffff
push edx
lea edi, [esi + 2]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
mov edx, dword [0x518e78]
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push ebx
push ecx
push ebx
push edx
push edi
push 0x518e70
mov dword [ebp - 0x18], ebx
call fcn.004804a0
mov eax, dword [0x518e80]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.0048f0a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4557ed
mov eax, dword [ebp + 0x10]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004242c0
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x14], esp
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45588f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x4557b2
test edi, 0xffff0000
jne 0x4557b6
movzx edi, di
push edi
call fcn.004a6e27
test eax, eax
je 0x4557c9
mov ecx, dword [ebp - 0x14]
push edi
push eax
call fcn.00423ccc
jmp 0x4557c9
xor eax, eax
jmp 0x4557bf
push edi
call fcn.004ad5da
add esp, 4
mov ecx, dword [ebp - 0x14]
push eax
push edi
call fcn.0042424f
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x60]
push eax
push 0x518e70
mov byte [ebp - 4], 3
call fcn.00454410
add esp, 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ad5bb
add esp, 8
test eax, eax
jl 0x455899
cmp eax, dword [esi - 8]
jg 0x455899
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0x518eac
call fcn.00451ef0
mov edi, dword [0x518eb8]
cmp edi, dword [0x518ebc]
jbe 0x45583d
call fcn.004ad751
mov edx, dword [0x518eac]
lea eax, [esi - 0x10]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455869
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x518ebc]
sub ecx, dword [0x518eb8]
xor ebx, ebx
sar ecx, 2
test ecx, ecx
ja 0x455640
mov edi, dword [ebp - 0x1c]
jmp 0x4554f9
call fcn.00421548
push 0x80004005
call fcn.00421000
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 - 0x28], esp
push eax
push edx
push str.RegDiff_PostScan:_MyRegSaveKey__s__failed__LE_d
push ecx
call fcn.00464a80
add esp, 0x10
call fcn.00453ba0
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [0x518e90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareCameyoPackagerVirtReg
push SysReAllocStringLen
call fcn.00465bc0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455912
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 0x455935
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 0x455958
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 0x45597e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret