Function at 0x40f930
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp + 8], 0
je 0x40f9a5
mov eax, dword [ebp + 8]
push eax
call fcn.0040f240
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40f9a5
jmp 0x40ff5b
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0x4145b4
push 0
call fcn.0040da50
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40f9cc
jmp 0x40ff5b
push 1
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 1]
imul ecx, ecx, 0x468
push ecx
call fcn.0040d390
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40fa0e
mov dword [ebp - 0x30], 0x8007000e
mov edx, dword [ebp - 0x30]
push edx
push 0x358
push 0x4145c0
call fcn.0040d330
jmp 0x40ff5b
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 1]
imul ecx, ecx, 0xa8
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x35], 0
jmp 0x40fa34
mov cl, byte [ebp - 0x35]
add cl, 1
mov byte [ebp - 0x35], cl
movzx edx, byte [ebp - 0x35]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 2]
cmp edx, ecx
jge 0x40fa8e
movzx edx, byte [ebp - 0x35]
shl edx, 4
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
push 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040e620
add esp, 0xc
test eax, eax
je 0x40fa8c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040eca0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fa8c
jmp 0x40ff5b
jmp 0x40fa2b
cmp dword [ebp - 0x10], 0
jne 0x40fafd
mov byte [ebp - 0x3d], 0
jmp 0x40faa3
mov dl, byte [ebp - 0x3d]
add dl, 1
mov byte [ebp - 0x3d], dl
movzx eax, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 2]
cmp eax, edx
jge 0x40fafd
movzx eax, byte [ebp - 0x3d]
shl eax, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040e620
add esp, 0xc
test eax, eax
je 0x40fafb
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0040eca0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fafb
jmp 0x40ff5b
jmp 0x40fa9a
cmp dword [ebp + 0x14], 0
je 0x40fb0d
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x45], 0
jmp 0x40fb1c
mov cl, byte [ebp - 0x45]
add cl, 1
mov byte [ebp - 0x45], cl
movzx edx, byte [ebp - 0x45]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 1]
cmp edx, ecx
jge 0x40ff57
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
movzx ecx, byte [ebp - 0x45]
imul ecx, ecx, 0xa8
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 4]
mov dword [ebp - 0x50], eax
movzx ecx, byte [ebp - 0x19]
imul ecx, ecx, 0x468
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
cmp dword [ebp + 0xc], 0
je 0x40fb74
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], edx
jmp 0x40fb7b
mov dword [ebp - 0x6c], 0x4145d0
push 0
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040e540
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fb9d
jmp 0x40ff5b
push 0x27
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x50]
add eax, 0x8c
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fbc5
jmp 0x40ff5b
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x100
je 0x40fbdf
mov dword [ebp - 0x54], 6
jmp 0x40fc1c
cmp dword [ebp - 0x54], 7
je 0x40fc1c
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa0]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x9c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.0040e960
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fc1c
jmp 0x40ff5b
cmp dword [ebp - 0x54], 0
jne 0x40fc29
jmp 0x40fb13
cmp dword [ebp - 0x54], 4
jne 0x40fc99
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xa4]
and ecx, 0x20
jne 0x40fc99
push 0x666
call fcn.00401df0
add esp, 4
mov dword [ebp - 0x30], eax
push 0
push 0
lea edx, [ebp - 0x34]
push edx
push 0x400
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jbe 0x40fc89
push 0
push 0x10
push str.Install_Error
mov ecx, dword [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
cmp dword [ebp - 0x30], 0
jge 0x40fc99
jmp 0x40ff5b
mov dl, byte [ebp - 0x19]
add dl, 1
mov byte [ebp - 0x19], dl
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0040f330
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fcc5
jmp 0x40ff5b
mov dword [ebp - 0x5c], 1
mov edx, dword [ebp - 0x18]
push edx
push 0x104
mov eax, dword [ebp - 0x58]
add eax, 0x4e
push eax
call fcn.00401e30
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fcf4
jmp 0x40ff5b
cmp dword [ebp - 0x10], 0
je 0x40fde0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x80
je 0x40fde0
push 0
push str._TRANSFORMS_
lea eax, [ebp - 8]
push eax
call fcn.0040e440
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fd36
jmp 0x40ff5b
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 4
je 0x40fdb8
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 1
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0040ed10
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fd78
jmp 0x40ff5b
cmp dword [ebp - 0x10], 0
je 0x40fd8e
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040e1c0
mov dword [ebp - 0x10], 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040d590
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040e440
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fdb6
jmp 0x40ff5b
jmp 0x40fde0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040d590
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040e440
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fde0
jmp 0x40ff5b
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 4
je 0x40fe69
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 1
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0040eea0
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fe22
jmp 0x40ff5b
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
push eax
push 0x104
mov ecx, dword [ebp - 0x58]
add ecx, 0x256
push ecx
call fcn.00401e30
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fe5a
jmp 0x40ff5b
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x460], 1
jmp 0x40fe6f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 8
jne 0x40fe9b
mov dword [ebp - 0x4c], 3
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xa4]
and ecx, 0x10
je 0x40fe9b
mov edx, dword [ebp - 0x4c]
or edx, 0x40
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xa4]
and ecx, 1
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 0x200
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x10
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x50]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0040f4c0
add esp, 0x28
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40fef8
jmp 0x40ff59
cmp dword [ebp - 0x30], 1
jne 0x40ff35
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0x460], 0
je 0x40ff33
mov edx, dword [ebp - 0x58]
add edx, 0x256
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov word [ecx + 0x256], ax
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x460], 0
jmp 0x40ff42
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x464], 1
cmp dword [ebp - 0x5c], 0
je 0x40ff52
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fb13
jmp 0x40ff5b
jmp 0x40ff5b
cmp dword [ebp - 0x30], 0
jge 0x410039
push 0xbc2
call fcn.00401df0
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x410039
push 0xbc3
call fcn.00401df0
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x410039
push 0x669
call fcn.00401df0
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x410039
mov byte [ebp - 0x61], 0
jmp 0x40ffb6
mov dl, byte [ebp - 0x61]
add dl, 1
mov byte [ebp - 0x61], dl
movzx eax, byte [ebp - 0x61]
movzx ecx, byte [ebp - 0x19]
cmp eax, ecx
jge 0x410039
movzx edx, byte [ebp - 0x61]
imul edx, edx, 0x468
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x464], 0
je 0x40fffe
push 0
push 0
push 1
push 3
push 7
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x68]
push edx
call fcn.0040f4c0
add esp, 0x28
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax + 0x256]
test ecx, ecx
je 0x41001c
mov edx, dword [ebp - 0x68]
add edx, 0x256
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax + 0x4e]
test ecx, ecx
je 0x410034
mov edx, dword [ebp - 0x68]
add edx, 0x4e
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40ffad
cmp dword [ebp - 0x10], 0
je 0x410049
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
je 0x410058
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040d3c0
cmp dword [ebp - 0x34], 0
je 0x410068
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x410077
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040e1c0
cmp dword [ebp - 0x10], 0
je 0x410086
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040e1c0
cmp dword [ebp - 0x24], 0
je 0x410095
mov edx, dword [ebp - 0x24]
push edx
call fcn.0040e1c0
cmp dword [ebp - 0xc], 0
je 0x4100a4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040e1c0
cmp dword [ebp - 8], 0
je 0x4100b3
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040e1c0
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret