Function at 0x40ecd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43287c
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 0x40ed2a
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.0040f3ad
cmp dword [ebp + 0x10], ebx
je 0x40ed7e
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
call fcn.0041571a
cmp dword [esp + 0x4c], ebx
je 0x40ed7e
lea eax, [esp + 0x48]
call fcn.004156b9
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, edi
call fcn.0040e4ca
cmp dword [edi + 0x264], ebx
je 0x40edf4
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 0x40edce
lea esi, [esp + 0x3c]
call fcn.00415770
lea esi, [esp + 0x48]
call fcn.00415770
jmp 0x40ed13
cmp dword [edi + 0x268], ebx
je 0x40edef
lea esi, [esp + 0x3c]
call fcn.00415770
lea esi, [esp + 0x48]
call fcn.00415770
mov eax, ebx
jmp 0x40ed15
xor ebx, ebx
inc ebx
jmp 0x40edd6
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0xc], ebx
ja 0x40ee1b
mov eax, edi
call fcn.0040ec0a
mov eax, edi
call fcn.0040f3ad
mov ebx, dword [esp + 0x28]
jmp 0x40edd6
xor ebx, ebx
cmp dword [edi + 0x274], ebx
jne 0x40edd6
cmp dword [edi + 0x26c], 0xa0000054
je 0x40edd6
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.004146ae
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x40f053
push dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x40]
push ecx
call fcn.00415638
pop ecx
pop ecx
test eax, eax
je 0x40f062
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.0040e42b
test eax, eax
je 0x40efea
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 0x40ef36
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000017
je 0x40f06f
cmp dword [esp + 0x14], eax
jne 0x40ef10
cmp ecx, 0xa0000062
jne 0x40ef10
cmp dword [ebp + 0x10], eax
je 0x40ef20
mov ecx, dword [ebp + 0x10]
call fcn.00414dc2
cmp eax, 1
jne 0x40f076
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000059
je 0x40efac
push dword [esp + 0x18]
mov esi, edi
call fcn.0040ec2e
and dword [esp + 0x28], 0
mov esi, dword [esp + 0x30]
jmp 0x40efac
cmp dword [ebp + 0x10], eax
je 0x40ef58
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40ef58
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
push eax
call fcn.00420ea6
pop ecx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x40efac
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push edi
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.0040f080
test eax, eax
jne 0x40efa8
and dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x40efa8
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x38]
je 0x40efa0
cmp dword [edi + 0x28], 0x10
jne 0x40efa8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xa0000060
jne 0x40efa8
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x40efb6
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
cmp dword [esp + 0x24], eax
je 0x40efd9
cmp dword [esp + 0x10], eax
je 0x40efca
push dword [esp + 0x10]
jmp 0x40efd3
cmp dword [ebp + 0x10], eax
je 0x40efea
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], 0
je 0x40efea
push dword [esp + 0x10]
call fcn.0041fde1
pop ecx
mov eax, edi
call fcn.0040e5d0
mov eax, dword [esp + 0x18]
test byte [eax + 0x40], 2
je 0x40f03d
push dword [edi + 0xc]
push dword [esp + 0x40]
call fcn.00414be7
pop ecx
pop ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x40f03d
lea esi, [edi + 0x340]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jb 0x40f02b
lea eax, [ebx + 1]
call fcn.004187ed
test al, al
je 0x40f03d
mov eax, dword [esi]
lea ebx, [eax + ebx*4]
test ebx, ebx
je 0x40f03a
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 0x40ee19
jmp 0x40ee05
mov dword [edi + 0x26c], 0xa0000037
jmp 0x40edd6
push esi
mov ecx, 0xa0000050
mov esi, edi
call fcn.0040ec2e
xor ebx, ebx
jmp 0x40edd6
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
jmp 0x40f068