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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dee0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
mov ecx, 0x51bcaa
call fcn.004dd904
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040a4f0
push eax
lea ecx, [edi + 0x24]
call fcn.00403380
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40bd05
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bcfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c042
push ecx
push edx
call fcn.004b0995
add esp, 8
mov ecx, edi
call fcn.0040a210
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x46a
push dword [eax]
call esi
mov ax, word [0x506f48]
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0xa
movq xmm0, qword [0x506f40]
mov dword [ebp - 0x2c], 0xf
movq qword [ebp - 0x40], xmm0
mov word [ebp - 0x38], ax
mov byte [ebp - 0x36], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
push ecx
push 0
push 0x469
push dword [eax]
call esi
xor esi, esi
nop dword [eax]
mov ecx, dword [edi + 4]
add ecx, 4
call fcn.00404630
mov eax, dword [edi + 4]
push dword [eax + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bd91
inc esi
cmp esi, 0x14
jl 0x40bd70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40bdcc
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bdc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c047
push ecx
push edx
call fcn.004b0995
add esp, 8
push str.GInstallerPkg
lea ecx, [ebp - 0x14]
call fcn.00406190
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov edx, dword [edi + 4]
push 0x50706c
add edx, 4
call fcn.00405780
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00405910
add esp, 8
mov edx, dword [ebp - 0x20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40be25
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 - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40be43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
call fcn.00403aa0
push 0x507070
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00405780
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
mov edx, dword [edi + 4]
push 0x507088
add edx, 4
call fcn.00405780
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00405910
push 0x50707c
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 8]
call fcn.00405780
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40beb8
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 - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bed6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x40bf4f
push 4
push 0x50708c
lea ecx, [ebp + 8]
call fcn.00406970
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 8]
call esi
test eax, eax
je 0x40bf4f
push 4
push 0x507098
lea ecx, [ebp + 8]
call fcn.00406970
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 8]
call esi
test eax, eax
je 0x40bf4f
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00406970
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406700
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040b440
push dword [ebp + 8]
push dword [ebp - 0x10]
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 - 0x20], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406700
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040b8a0
mov eax, dword [edi + 4]
or esi, 0xffffffff
mov dword [eax + 8], 1
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bfea
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 0x40c004
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c01c
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
ret 4
call fcn.004b8080
call fcn.004b8080
int3