Function at 0x41925d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454657
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push esi
push str.GRegMrFsRedItemWrite
lea ecx, [ebp - 0xf4]
call fcn.004117cd
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040661b
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0041858f
pop ecx
pop ecx
push str.HKLMSOFTWAREMARCOTTE_
lea ecx, [ebp - 0xdd]
call fcn.0040650c
mov byte [ebp - 4], 2
lea eax, [ebp - 0xdd]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406fcc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdd]
call fcn.004066e8
lea ecx, [ebp - 0x2c]
call fcn.004084b1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406b07
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
call fcn.0043ada8
add esp, 0xc
test eax, eax
je 0x419319
push 0x4f8
push str.D:projectsutil_srcgreg.cpp
push str.0__strncmpi__szFile__szCheck__szCheck.Length____
call fcn.00404768
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.0040661b
mov byte [ebp - 4], 3
push 1
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.004178c4
push 0
lea ecx, [ebp - 0x20]
call fcn.00406a95
movsx eax, byte [eax]
test eax, eax
jne 0x419362
push str.szBuffer_0_
push str.GRPN
push 0x4fc
push str.D:projectsutil_srcgreg.cpp
call fcn.00405131
add esp, 0x10
lea ecx, [ebp - 0x1bc]
call fcn.00410532
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1bc]
call fcn.00410b75
movzx eax, al
test eax, eax
je 0x419412
lea ecx, [ebp - 0x20]
call fcn.004084b1
mov esi, eax
lea ecx, [ebp - 0x1bc]
call fcn.00410c52
cmp esi, eax
jne 0x419412
lea ecx, [ebp - 0x1bc]
call fcn.00410c52
push eax
lea ecx, [ebp - 0x1bc]
call fcn.004109ee
push eax
lea ecx, [ebp - 0x20]
call fcn.00406b07
push eax
call fcn.0043b51f
add esp, 0xc
test eax, eax
jne 0x419412
mov byte [ebp - 0x13], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1bc]
call fcn.004105bb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00411939
mov al, byte [ebp - 0x13]
jmp 0x419a0d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1bc]
call fcn.004105bb
lea ecx, [ebp - 0x38]
call fcn.0040d36e
mov byte [ebp - 4], 5
push 0x4598bc
lea eax, [ebp - 0x14e]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x70]
lea eax, [ebp - 0x18d]
push eax
push 0x4580a8
lea eax, [ebp - 0x196]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406c9e
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x80]
call fcn.00406b8d
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x54]
call fcn.00406c9e
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 9
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x38]
call fcn.0040e8f6
test eax, eax
jne 0x4194df
mov dword [ebp - 0x40], 1
jmp 0x4194e3
and dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14e]
call fcn.004066e8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18d]
call fcn.004066e8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x196]
call fcn.004066e8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x118]
call fcn.004066e8
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4196ab
push str..____for_write
lea eax, [ebp - 0x160]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x172]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x64]
lea eax, [ebp - 0x12a]
push eax
push 0x4580a8
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
push str._GREG__Unable_to_open_file
lea eax, [ebp - 0x13c]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x6c]
call fcn.00406c9e
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x74]
call fcn.00406b8d
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x7c]
call fcn.00406c9e
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x84]
call fcn.00406b07
push eax
push str.GREG
push 0x50a
push str.D:projectsutil_srcgreg.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x160]
call fcn.004066e8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x12a]
call fcn.004066e8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x184]
call fcn.004066e8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x13c]
call fcn.004066e8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x172]
call fcn.004066e8
mov byte [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040d4ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00411939
mov al, byte [ebp - 0x10]
jmp 0x419a0d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040f2ac
test eax, eax
jne 0x41984b
push 0x4598bc
lea eax, [ebp - 0xfd]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x133]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 0xf
push dword [ebp - 0xb0]
lea eax, [ebp - 0x106]
push eax
push 0x4580a8
lea eax, [ebp - 0x10f]
push eax
push dword [ebp + 0xc]
push str._GREG__Unable_to_write_file
lea eax, [ebp - 0x121]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xd0]
call fcn.00406c9e
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xb8]
call fcn.00406b8d
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xc8]
call fcn.00406c9e
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xc0]
call fcn.00406b07
push eax
push str.GREG
push 0x50f
push str.D:projectsutil_srcgreg.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xfd]
call fcn.004066e8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x106]
call fcn.004066e8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x10f]
call fcn.004066e8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x121]
call fcn.004066e8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x133]
call fcn.004066e8
mov byte [ebp - 0x12], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040d4ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00411939
mov al, byte [ebp - 0x12]
jmp 0x419a0d
lea ecx, [ebp - 0x38]
call fcn.0040d8a9
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
push 0x4598bc
lea eax, [ebp - 0x145]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x17b]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0x14
push dword [ebp - 0x8c]
lea eax, [ebp - 0x157]
push eax
push 0x4580a8
lea eax, [ebp - 0x169]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406c9e
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x4c]
call fcn.00406b8d
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x58]
call fcn.00406c9e
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x68]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x419914
mov dword [ebp - 0x3c], 1
jmp 0x419918
and dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x145]
call fcn.004066e8
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x157]
call fcn.004066e8
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x169]
call fcn.004066e8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x17b]
call fcn.004066e8
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x4199d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405ba3
pop ecx
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x419997
push str.MoveFileEx
push dword [ebp - 0x44]
push str.GREG
push 0x515
push str.D:projectsutil_srcgreg.cpp
call fcn.00405539
add esp, 0x14
mov byte [ebp - 0xf], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040d4ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00411939
mov al, byte [ebp - 0xf]
jmp 0x419a0d
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040d4ce
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00411939
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret