Function at 0x410cd0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7f2d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x524e73
mov dword [ebp - 0x18], edi
call fcn.004e6414
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040ec90
push eax
lea ecx, [edi + 0x24]
call fcn.004039d0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x410d49
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410d3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4110d7
push ecx
push edx
call fcn.004b8e2a
add esp, 8
mov ecx, edi
call fcn.0040e9b0
mov ecx, edi
call fcn.0040f5c0
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push str.GInstallerPkg
cmp byte [eax + 6], 0
je 0x410e64
call fcn.00408410
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov edx, dword [edi + 4]
push 0x50fad0
add edx, 4
call fcn.004079d0
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00407b60
add esp, 4
mov edx, dword [ebp - 0x28]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410dbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ddd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 4]
push 0
push 0
push 0x46d
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
mov esi, esp
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00408b90
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040fc50
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410e36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
call fcn.00413a20
mov eax, dword [edi + 4]
push 0
push 0
push 0x46c
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00408410
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov edx, dword [edi + 4]
push 0x50fad0
add edx, 4
call fcn.004079d0
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00407b60
add esp, 4
mov edx, dword [ebp - 0x28]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410eb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..tmp
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.004079d0
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.004058b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
mov edx, dword [edi + 4]
push 0x50fad0
add edx, 4
call fcn.004079d0
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00407b60
add esp, 4
push str..exe
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 8]
call fcn.004079d0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410f54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410f72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410fe5
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00408e20
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410fe5
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00408e20
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410fe5
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00408e20
push dword [ebp + 8]
call esi
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00408b90
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00410550
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x46d
push dword [eax]
call edi
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00408b90
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.004109c0
mov eax, dword [esi + 4]
push 0
push 0
push 0x46c
mov dword [eax + 8], 1
mov eax, dword [esi + 4]
push dword [eax]
call edi
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411078
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411092
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4110ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4110c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004c05a0
int3