Function at 0x40ce60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
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 0x40ced5
mov eax, dword [ebp + 8]
push eax
call fcn.0040cd70
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40ced5
jmp 0x40d409
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0x40fd54
push 0
call fcn.0040b850
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40cefc
jmp 0x40d409
push 1
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 1]
imul ecx, ecx, 0x468
push ecx
call fcn.0040a910
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40cf3e
mov dword [ebp - 0x30], 0x8007000e
mov edx, dword [ebp - 0x30]
push edx
push 0x357
push 0x40fd60
call fcn.0040a8b0
jmp 0x40d409
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 0x40cf64
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 0x40cfbe
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.0040bbf0
add esp, 0xc
test eax, eax
je 0x40cfbc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0040c1d0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40cfbc
jmp 0x40d409
jmp 0x40cf5b
cmp dword [ebp - 0x10], 0
jne 0x40d02d
mov byte [ebp - 0x3d], 0
jmp 0x40cfd3
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 0x40d02d
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.0040bbf0
add esp, 0xc
test eax, eax
je 0x40d02b
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0040c1d0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d02b
jmp 0x40d409
jmp 0x40cfca
cmp dword [ebp + 0x14], 0
je 0x40d03d
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x45], 0
jmp 0x40d04c
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 0x40d407
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 0x40d0a4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
jmp 0x40d0ab
mov dword [ebp - 0x68], 0x40fd70
push 0
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040b5d0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d0cd
jmp 0x40d409
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 0x40d0f5
jmp 0x40d409
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x100
je 0x40d10f
mov dword [ebp - 0x54], 6
jmp 0x40d14c
cmp dword [ebp - 0x54], 7
je 0x40d14c
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.0040bef0
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d14c
jmp 0x40d409
cmp dword [ebp - 0x54], 0
jne 0x40d157
jmp 0x40d043
mov al, byte [ebp - 0x19]
add al, 1
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040c770
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d182
jmp 0x40d409
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x18]
push eax
push 0x104
mov ecx, dword [ebp - 0x58]
add ecx, 0x4e
push ecx
call fcn.00401040
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d1b1
jmp 0x40d409
cmp dword [ebp - 0x10], 0
je 0x40d29c
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 0x80
je 0x40d29c
push 0
push str._TRANSFORMS_
lea ecx, [ebp - 8]
push ecx
call fcn.0040b730
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d1f2
jmp 0x40d409
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 4
je 0x40d274
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 1
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040c240
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d234
jmp 0x40d409
cmp dword [ebp - 0x10], 0
je 0x40d24a
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b3b0
mov dword [ebp - 0x10], 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040ab10
push eax
lea edx, [ebp - 8]
push edx
call fcn.0040b730
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d272
jmp 0x40d409
jmp 0x40d29c
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ab10
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040b730
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d29c
jmp 0x40d409
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 4
je 0x40d325
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0040c3d0
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d2de
jmp 0x40d409
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0x104
mov edx, dword [ebp - 0x58]
add edx, 0x256
push edx
call fcn.00401040
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d316
jmp 0x40d409
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x460], 1
jmp 0x40d32b
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0xa4]
and eax, 8
jne 0x40d357
mov dword [ebp - 0x4c], 3
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x10
je 0x40d357
mov eax, dword [ebp - 0x4c]
or eax, 0x40
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xa4]
and edx, 0x200
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xa4]
and ecx, 0x10
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.0040c900
add esp, 0x24
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x40d3a8
jmp 0x40d409
cmp dword [ebp - 0x30], 1
jne 0x40d3e5
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x460], 0
je 0x40d3e3
mov ecx, dword [ebp - 0x58]
add ecx, 0x256
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov eax, dword [ebp - 0x58]
mov word [eax + 0x256], dx
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x460], 0
jmp 0x40d3f2
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x464], 1
cmp dword [ebp - 0x5c], 0
je 0x40d402
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d043
jmp 0x40d409
cmp dword [ebp - 0x30], 0
jge 0x40d4e5
push 0xbc2
call section..text
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x40d4e5
push 0xbc3
call section..text
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x40d4e5
push 0x669
call section..text
add esp, 4
cmp eax, dword [ebp - 0x30]
je 0x40d4e5
mov byte [ebp - 0x5d], 0
jmp 0x40d464
mov cl, byte [ebp - 0x5d]
add cl, 1
mov byte [ebp - 0x5d], cl
movzx edx, byte [ebp - 0x5d]
movzx eax, byte [ebp - 0x19]
cmp edx, eax
jge 0x40d4e5
movzx ecx, byte [ebp - 0x5d]
imul ecx, ecx, 0x468
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x464], 0
je 0x40d4aa
push 0
push 1
push 3
push 7
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0040c900
add esp, 0x24
mov edx, dword [ebp - 0x64]
movzx eax, word [edx + 0x256]
test eax, eax
je 0x40d4c8
mov ecx, dword [ebp - 0x64]
add ecx, 0x256
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x64]
movzx eax, word [edx + 0x4e]
test eax, eax
je 0x40d4e0
mov ecx, dword [ebp - 0x64]
add ecx, 0x4e
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d45b
cmp dword [ebp - 0x10], 0
je 0x40d4f5
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
je 0x40d504
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040a940
cmp dword [ebp - 0x34], 0
je 0x40d514
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x40d523
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040b3b0
cmp dword [ebp - 0x10], 0
je 0x40d532
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b3b0
cmp dword [ebp - 0x24], 0
je 0x40d541
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040b3b0
cmp dword [ebp - 0xc], 0
je 0x40d550
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040b3b0
cmp dword [ebp - 8], 0
je 0x40d55f
mov eax, dword [ebp - 8]
push eax
call fcn.0040b3b0
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret