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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de8cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x38
push esi
push edi
mov edi, ecx
mov ecx, 0x518caa
call fcn.004dd464
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x46a
mov dword [edi + 4], eax
push dword [eax]
call esi
mov ax, word [0x505de4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0xa
movq xmm0, qword [0x505ddc]
mov dword [ebp - 0x34], 0xf
movq qword [ebp - 0x48], xmm0
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3e], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
push ecx
push 0
push 0x469
push dword [eax]
call esi
xor esi, esi
mov ecx, dword [edi + 4]
add ecx, 4
call fcn.00404590
mov eax, dword [edi + 4]
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b872
inc esi
cmp esi, 0x14
jl 0x40b851
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x40b8ad
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b8a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bb3b
push ecx
push edx
call fcn.004b04f5
add esp, 8
push str.GInstallerPkg
lea ecx, [ebp - 0x1c]
call fcn.00406170
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edx, dword [edi + 4]
push 0x505a64
add edx, 4
call fcn.00405760
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.004058f0
add esp, 4
mov edx, dword [ebp - 0x28]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b927
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00403a00
push str..tmp
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00405760
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
mov edx, dword [edi + 4]
push 0x505a64
add edx, 4
call fcn.00405760
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.004058f0
add esp, 4
push str..exe
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
call fcn.00405760
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b9a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b9c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x40ba3c
push 4
push str..exe
lea ecx, [ebp - 0x14]
call fcn.004068d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x40ba3c
push 4
push str..exe
lea ecx, [ebp - 0x14]
call fcn.004068d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x40ba3c
push 4
push str..exe
lea ecx, [ebp - 0x14]
call fcn.004068d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406660
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040afe0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
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 - 0x28], esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406660
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040b4b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 4]
or esi, 0xffffffff
mov dword [eax + 8], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bac6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bae0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bafa
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], esi
dec esi
test esi, esi
jg 0x40bb12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004b7be0
int3