Function at 0x40c3cf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x40c418
mov dword [ebx + 0x94], 0x37
xor eax, eax
jmp 0x40c4c9
and dword [ebx + 0x94], 0
mov edi, ebx
call fcn.0040c9be
test esi, esi
jne 0x40c43b
xor eax, eax
mov word [esp + 0x450], ax
mov word [esp + 0x38], ax
jmp 0x40c456
push esi
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [esp + 0x450]
call fcn.00405d16
push dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov esi, ebx
call fcn.0040bc7d
xor edi, edi
cmp dword [ebx + 0x8c], edi
je 0x40c4a6
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x90], edi
call dword [eax + 0x68]
push dword [esp + 0x2c]
mov eax, dword [ebx]
push dword [esp + 0x1c]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [esp + 0x2c]
call dword [eax + 0x64]
test eax, eax
je 0x40c411
xor eax, eax
cmp dword [ebx + 0x90], edi
sete al
jmp 0x40c4c9
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], edi
cmp dword [ebp + 0xc], edi
ja 0x40c4e2
mov eax, ebx
call fcn.0040c2fc
mov edi, ebx
call fcn.0040c9be
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041110d
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
cmp dword [ebx + 0x9c], edi
jne 0x40c411
cmp dword [ebx + 0x94], 0x54
je 0x40c411
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
lea ecx, [ebx + 0x18]
mov dword [esp + 0x30], eax
call fcn.0040616f
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, edi
je 0x40c407
push dword [esp + 0x2c]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x454]
push ecx
lea ecx, [esp + 0x40]
push ecx
call fcn.00405c39
add esp, 0xc
test eax, eax
je 0x40c702
push dword [esp + 0x30]
and dword [esp + 0x14], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov edi, dword [esi + 0x2c]
mov eax, esi
shr edi, 4
mov esi, ebx
and edi, 1
call fcn.0040bbf9
test eax, eax
je 0x40c6b1
push dword [ebx + 4]
lea eax, [esp + 0x28]
push eax
push edi
push dword [ebx + 0x88]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
call dword [ebx + 0x84]
mov esi, eax
add esp, 0x18
mov dword [esp + 0x34], esi
test esi, esi
jne 0x40c603
cmp dword [esp + 0x14], eax
jne 0x40c5bd
cmp dword [esp + 0x24], 5
jne 0x40c5bd
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40c5e1
call fcn.00405df8
cmp eax, 1
jne 0x40c712
mov eax, dword [esp + 0x24]
cmp eax, 3
je 0x40c5ea
cmp eax, 0xce
je 0x40c5ea
cmp eax, 0x70
jne 0x40c5d6
push 0x54
jmp 0x40c5e3
cmp eax, 0x70000000
jne 0x40c5e1
push 0x59
jmp 0x40c5e3
push 0x31
pop ecx
push dword [esp + 0xc]
jmp 0x40c5f1
push dword [esp + 0xc]
push 0x50
pop ecx
mov esi, ebx
call fcn.0040c32d
and dword [esp + 0x28], 0
mov esi, dword [esp + 0x34]
jmp 0x40c671
cmp dword [esp + 0x18], 0
je 0x40c627
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40c627
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
push eax
call fcn.00411f19
pop ecx
mov dword [esp + 0x10], eax
test edi, edi
jne 0x40c671
push dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, esi
mov ecx, ebx
call fcn.0040c71a
test eax, eax
jne 0x40c671
and dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x40c671
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
or eax, edx
je 0x40c669
cmp dword [edi + 0x28], 8
jne 0x40c671
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
cmp eax, 0x60
jne 0x40c671
mov dword [esp + 0x1c], 1
test esi, esi
je 0x40c67b
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x40c6a0
cmp dword [esp + 0x10], eax
je 0x40c68f
push dword [esp + 0x10]
jmp 0x40c69a
cmp dword [esp + 0x18], eax
je 0x40c6b1
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], 0
je 0x40c6b1
push dword [esp + 0x10]
call fcn.00411556
pop ecx
mov eax, ebx
call fcn.0040bd6b
mov eax, dword [esp + 0xc]
test byte [eax + 0x40], 2
je 0x40c6ec
push dword [ebx + 0xc]
lea eax, [esp + 0x3c]
push eax
call fcn.00405b72
pop ecx
mov edi, eax
lea esi, [ebx + 0x168]
pop ecx
mov eax, esi
call fcn.0040b556
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 8]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x40c4e0
jmp 0x40c4b7
push esi
push 0x50
pop ecx
mov esi, ebx
call fcn.0040c32d
jmp 0x40c411
push dword [esp + 0xc]
push 0x62
jmp 0x40c705