Function at 0x40f3c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44832a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x158], ebx
call fcn.0043be4f
push 0x44b62a
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 1
call fcn.00402470
mov byte [esp + 0x158], 2
call fcn.0044608e
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x118]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x16c], ebx
mov dword [esp + 0x14], ebx
jle 0x40f7bf
mov edi, dword [esp + 0x168]
add edi, 0xfffffffc
mov dword [esp + 0x24], edi
jmp 0x40f450
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
mov esi, dword [esp + 0x168]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
xor ebp, ebp
mov dword [esp + 0x30], ebp
call dword [edx + 0x10]
cmp dword [edi], 0
jl 0x40f47e
cmp eax, dword [esi]
jne 0x40f47e
mov eax, esi
mov ecx, 1
lock xadd dword [edi], ecx
jmp 0x40f4b0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x40f83f
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x160]
xor eax, eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0x164], 3
call fcn.00424c90
lea ecx, [esp + 0x4c]
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004250e0
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x38]
call fcn.00402470
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 4
call fcn.00401b10
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x158], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f53e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00403670
push 0x44c6ac
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x164], 5
call fcn.00401d70
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x158], 6
je 0x40f5d4
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40f5c6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40f5c6
push eax
call fcn.004014e0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40f5b9
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x30]
jmp 0x40f5d4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x158], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x158], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f620
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
xor edi, edi
test eax, eax
jle 0x40f69c
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x40f693
lea ebx, [ebx]
test edi, edi
jl 0x40f844
cmp edi, dword [esp + 0x40]
jge 0x40f844
test esi, esi
jl 0x40f844
mov eax, dword [esp + 0x164]
cmp esi, dword [eax + 8]
jge 0x40f844
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + edi*4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042f5a3
add esp, 8
test eax, eax
je 0x40f692
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x40f640
jmp 0x40f693
inc ebp
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jl 0x40f630
cmp ebp, eax
jne 0x40f739
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x20
push ebx
call edi
mov edx, dword [esp + 0x10]
push 0x20
push edx
call edi
call fcn.00404100
mov eax, dword [0x466964]
cmp eax, 8
je 0x40f6cc
cmp eax, 9
jne 0x40f70c
push str.SETUPAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40f70c
push str.SetupUninstallOEMInfA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f705
push 0
push 1
lea ecx, [esp + 0x54]
push ecx
call eax
test eax, eax
push esi
je 0x40f706
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40f739
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00404100
cmp eax, 0xa
je 0x40f731
push 0x20
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x1c], eax
call esi
jmp 0x40f739
mov dword [esp + 0x18], 1
mov ecx, dword [ebx - 0xc]
test ecx, ecx
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x40f785
mov edx, dword [eax + 0xc]
test edx, edx
lea ecx, [eax + 0xc]
jge 0x40f767
mov eax, dword [ebx - 8]
test eax, eax
jl 0x40f849
mov dword [ebx - 0xc], 0
mov byte [ebx], 0
jmp 0x40f785
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f77b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
lea eax, [ebx - 0x10]
mov byte [esp + 0x158], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x16c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40f442
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x158], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 0
call fcn.0043bea1
mov eax, dword [esp + 0x168]
add eax, 0xfffffff0
mov dword [esp + 0x158], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret
jmp fcn.00401260
jmp fcn.0043b946
push 0x80070057
call fcn.004010c0
int3