Function at 0x40ecdb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432b11
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x43f050]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x40ed35
mov dword [edi + 0x26c], 0xa0000037
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x436014
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x60], 1
mov eax, edi
mov dword [edi + 0x26c], ebx
call fcn.0040f3b8
cmp dword [ebp + 0x10], ebx
je 0x40ed89
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
call fcn.004158cb
cmp dword [esp + 0x4c], ebx
je 0x40ed89
lea eax, [esp + 0x48]
call fcn.0041586a
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, edi
call fcn.0040e4e8
cmp dword [edi + 0x264], ebx
je 0x40edff
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 0x268], ebx
call dword [eax + 0x6c]
push dword [ebp + 0x14]
mov eax, dword [edi]
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x68]
test eax, eax
jne 0x40edd9
lea esi, [esp + 0x3c]
call fcn.00415921
lea esi, [esp + 0x48]
call fcn.00415921
jmp 0x40ed1e
cmp dword [edi + 0x268], ebx
je 0x40edfa
lea esi, [esp + 0x3c]
call fcn.00415921
lea esi, [esp + 0x48]
call fcn.00415921
mov eax, ebx
jmp 0x40ed20
xor ebx, ebx
inc ebx
jmp 0x40ede1
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0xc], ebx
ja 0x40ee26
mov eax, edi
call fcn.0040ec15
mov eax, edi
call fcn.0040f3b8
mov ebx, dword [esp + 0x28]
jmp 0x40ede1
xor ebx, ebx
cmp dword [edi + 0x274], ebx
jne 0x40ede1
cmp dword [edi + 0x26c], 0xa0000054
je 0x40ede1
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [edi + 0x18]
mov dword [esp + 0x2c], eax
call fcn.0041485d
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x40f05e
push dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x40]
push ecx
call fcn.004157e9
pop ecx
pop ecx
test eax, eax
je 0x40f06d
mov ebx, dword [esi + 0x2c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x30]
mov eax, esi
shr ebx, 4
mov esi, edi
and ebx, 1
call fcn.0040e449
test eax, eax
je 0x40eff5
push dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push ebx
push dword [edi + 0x25c]
push dword [esp + 0x4c]
push dword [esp + 0x2c]
push dword [edi + 0x260]
call dword [edi + 0x258]
mov esi, eax
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x30], esi
cmp esi, eax
jne 0x40ef41
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000017
je 0x40f07a
cmp dword [esp + 0x14], eax
jne 0x40ef1b
cmp ecx, 0xa0000062
jne 0x40ef1b
cmp dword [ebp + 0x10], eax
je 0x40ef2b
mov ecx, dword [ebp + 0x10]
call fcn.00414f73
cmp eax, 1
jne 0x40f081
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000059
je 0x40efb7
push dword [esp + 0x18]
mov esi, edi
call fcn.0040ec39
and dword [esp + 0x28], 0
mov esi, dword [esp + 0x30]
jmp 0x40efb7
cmp dword [ebp + 0x10], eax
je 0x40ef63
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40ef63
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
push eax
call fcn.004211b6
pop ecx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x40efb7
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push edi
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.0040f08b
test eax, eax
jne 0x40efb3
and dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x40efb3
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x38]
je 0x40efab
cmp dword [edi + 0x28], 0x10
jne 0x40efb3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xa0000060
jne 0x40efb3
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x40efc1
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
cmp dword [esp + 0x24], eax
je 0x40efe4
cmp dword [esp + 0x10], eax
je 0x40efd5
push dword [esp + 0x10]
jmp 0x40efde
cmp dword [ebp + 0x10], eax
je 0x40eff5
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], 0
je 0x40eff5
push dword [esp + 0x10]
call fcn.004200e6
pop ecx
mov eax, edi
call fcn.0040e5ee
mov eax, dword [esp + 0x18]
test byte [eax + 0x40], 2
je 0x40f048
push dword [edi + 0xc]
push dword [esp + 0x40]
call fcn.00414d96
pop ecx
pop ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x40f048
lea esi, [edi + 0x340]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jb 0x40f036
lea eax, [ebx + 1]
call fcn.00418a03
test al, al
je 0x40f048
mov eax, dword [esi]
lea ebx, [eax + ebx*4]
test ebx, ebx
je 0x40f045
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
inc dword [esi + 4]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x40ee24
jmp 0x40ee10
mov dword [edi + 0x26c], 0xa0000037
jmp 0x40ede1
push esi
mov ecx, 0xa0000050
mov esi, edi
call fcn.0040ec39
xor ebx, ebx
jmp 0x40ede1
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
jmp 0x40f073