Function at 0x40ec0e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432247
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x441050]
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 0x40ec68
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, 0x436018
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.0040f2eb
cmp dword [ebp + 0x10], ebx
je 0x40ecbc
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push eax
call fcn.00415423
cmp dword [esp + 0x4c], ebx
je 0x40ecbc
lea eax, [esp + 0x48]
call fcn.004153c2
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, edi
call fcn.0040e436
cmp dword [edi + 0x264], ebx
je 0x40ed32
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 0x40ed0c
lea esi, [esp + 0x3c]
call fcn.00415479
lea esi, [esp + 0x48]
call fcn.00415479
jmp 0x40ec51
cmp dword [edi + 0x268], ebx
je 0x40ed2d
lea esi, [esp + 0x3c]
call fcn.00415479
lea esi, [esp + 0x48]
call fcn.00415479
mov eax, ebx
jmp 0x40ec53
xor ebx, ebx
inc ebx
jmp 0x40ed14
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0xc], ebx
ja 0x40ed59
mov eax, edi
call fcn.0040eb48
mov eax, edi
call fcn.0040f2eb
mov ebx, dword [esp + 0x28]
jmp 0x40ed14
xor ebx, ebx
cmp dword [edi + 0x274], ebx
jne 0x40ed14
cmp dword [edi + 0x26c], 0xa0000054
je 0x40ed14
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.004146f1
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x40ef91
push dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x40]
push ecx
call fcn.00415341
pop ecx
pop ecx
test eax, eax
je 0x40efa0
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.0040e397
test eax, eax
je 0x40ef28
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 0x40ee74
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000017
je 0x40efad
cmp dword [esp + 0x14], eax
jne 0x40ee4e
cmp ecx, 0xa0000062
jne 0x40ee4e
cmp dword [ebp + 0x10], eax
je 0x40ee5e
mov ecx, dword [ebp + 0x10]
call fcn.00414e05
cmp eax, 1
jne 0x40efb4
mov ecx, dword [esp + 0x20]
cmp ecx, 0xa0000059
je 0x40eeea
push dword [esp + 0x18]
mov esi, edi
call fcn.0040eb6c
and dword [esp + 0x28], 0
mov esi, dword [esp + 0x30]
jmp 0x40eeea
cmp dword [ebp + 0x10], eax
je 0x40ee96
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
test eax, eax
je 0x40ee96
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
push eax
call fcn.004208d6
pop ecx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x40eeea
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push edi
mov edi, dword [esp + 0x20]
mov ecx, esi
call fcn.0040efbe
test eax, eax
jne 0x40eee6
and dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x40eee6
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x38]
je 0x40eede
cmp dword [edi + 0x28], 0x10
jne 0x40eee6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xa0000060
jne 0x40eee6
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x40eef4
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
cmp dword [esp + 0x24], eax
je 0x40ef17
cmp dword [esp + 0x10], eax
je 0x40ef08
push dword [esp + 0x10]
jmp 0x40ef11
cmp dword [ebp + 0x10], eax
je 0x40ef28
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], 0
je 0x40ef28
push dword [esp + 0x10]
call fcn.0041f805
pop ecx
mov eax, edi
call fcn.0040e53c
mov eax, dword [esp + 0x18]
test byte [eax + 0x40], 2
je 0x40ef7b
push dword [edi + 0xc]
push dword [esp + 0x40]
call fcn.00414c2a
pop ecx
pop ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x40ef7b
lea esi, [edi + 0x340]
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jb 0x40ef69
lea eax, [ebx + 1]
call fcn.0040f368
test al, al
je 0x40ef7b
mov eax, dword [esi]
lea ebx, [eax + ebx*4]
test ebx, ebx
je 0x40ef78
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 0x40ed57
jmp 0x40ed43
mov dword [edi + 0x26c], 0xa0000037
jmp 0x40ed14
push esi
mov ecx, 0xa0000050
mov esi, edi
call fcn.0040eb6c
xor ebx, ebx
jmp 0x40ed14
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
jmp 0x40efa6