Function at 0x4082e2
Capabilities:
Delete file

Disassembly:
mov eax, 0x43d445
call fcn.0042e160
sub esp, 0x78
push esi
push edi
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
lea eax, [ebx + 0xe8]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x452170]
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00406281
xor esi, esi
mov dword [ebp - 0x14], esi
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 3
call fcn.0040e0fb
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x40857e
lea edi, [ebx + 0xa0]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.00408ec4
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00408eee
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0040622e
lea eax, [ebp - 0x24]
push eax
mov eax, esi
call fcn.00406249
mov ecx, eax
call fcn.00401d11
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401afa
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4083af
call fcn.004013ad
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.004061f8
push eax
lea ecx, [ebp - 0x84]
call fcn.00401b9b
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4083d9
call fcn.004013ad
xor eax, eax
call fcn.00403276
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00406213
push eax
lea ecx, [ebp - 0x80]
call fcn.00401b9b
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40840a
call fcn.004013ad
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [ebp - 0x64]
call fcn.00409100
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.00408c68
mov eax, dword [esi + 0x9c]
cmp eax, edi
jne 0x408470
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0x18], edi
jbe 0x40845f
mov edi, dword [ebp - 0x64]
add edi, 0x24
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x18], eax
jae 0x408866
push 0
call fcn.0042eaa6
inc dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
add edi, 0x34
cmp eax, dword [ebp - 0x60]
pop ecx
jb 0x40843b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408ca9
jmp 0x408531
cmp eax, 4
jne 0x408531
cmp dword [esi + 0x1c], 2
jne 0x408531
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00406249
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00408bb7
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4084b3
call fcn.004013ad
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.00406264
push eax
lea ecx, [ebp - 0x74]
call fcn.00401b9b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4084e3
call fcn.004013ad
mov eax, dword [esi + 0x130]
mov dword [ebp - 0x70], eax
mov dword [ebx + 0x1c], 1
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x30]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00408dd7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408ca9
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408531
call fcn.004013ad
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 0xa0]
push edi
call fcn.00408f26
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x40855b
call fcn.004013ad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408572
call fcn.004013ad
cmp dword [ebp - 0x20], 0
jne 0x40834b
xor edi, edi
cmp dword [ebp - 0x50], 0
jbe 0x40859d
push edi
lea ecx, [ebp - 0x54]
call fcn.0040e882
push eax
lea eax, [ebx + 0x30]
push eax
call fcn.00408e21
inc edi
cmp edi, dword [ebp - 0x50]
jb 0x408584
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x54]
call fcn.00402439
lea eax, [ebx + 0x60]
mov dword [ebp - 0x1c], eax
call fcn.0040e0fb
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4087fc
lea edi, [ebx + 0x100]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
call fcn.00408ec4
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00408eee
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.0040622e
lea eax, [ebp - 0x3c]
push eax
mov eax, esi
call fcn.00406249
mov ecx, eax
call fcn.00401d11
push eax
lea ecx, [ebp - 0x40]
call fcn.00401afa
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408629
call fcn.004013ad
lea eax, [ebp - 0x38]
push eax
mov eax, esi
call fcn.004061f8
push eax
lea ecx, [ebp - 0x84]
call fcn.00401b9b
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408653
call fcn.004013ad
xor eax, eax
call fcn.00403276
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x34]
push eax
mov eax, esi
call fcn.00406213
push eax
lea ecx, [ebp - 0x80]
call fcn.00401b9b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408684
call fcn.004013ad
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [ebp - 0x64]
call fcn.00409100
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.00408c68
mov eax, dword [esi + 0x9c]
cmp eax, edi
jne 0x4086ee
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408ca9
cmp dword [ebp - 0x60], edi
mov dword [ebp - 0x18], edi
jbe 0x4087b1
mov edi, dword [ebp - 0x64]
add edi, 0x24
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x18], eax
jae 0x408866
push 0
call fcn.0042eaa6
inc dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
add edi, 0x34
cmp eax, dword [ebp - 0x60]
pop ecx
jb 0x4086c5
jmp 0x4087b1
cmp eax, 4
jne 0x4087b1
cmp dword [esi + 0x1c], 2
jne 0x4087b1
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00406249
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408bb7
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408731
call fcn.004013ad
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00406264
push eax
lea ecx, [ebp - 0x74]
call fcn.00401b9b
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x408761
call fcn.004013ad
mov eax, dword [esi + 0x130]
mov dword [ebp - 0x70], eax
mov dword [ebx + 0x94], 1
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00408dd7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408ca9
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4087b1
call fcn.004013ad
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 0x100]
push edi
call fcn.00408f26
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4087db
call fcn.004013ad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
je 0x4087f2
call fcn.004013ad
cmp dword [ebp - 0x24], 0
jne 0x4085c5
xor edi, edi
cmp dword [ebp - 0x50], edi
jbe 0x40881b
push edi
lea ecx, [ebp - 0x54]
call fcn.0040e882
push eax
push dword [ebp - 0x1c]
call fcn.00408e21
inc edi
cmp edi, dword [ebp - 0x50]
jb 0x408803
test esi, esi
mov byte [ebp - 4], 2
je 0x408829
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
lea esi, [ebp - 0x84]
call fcn.00406727
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x452174]
pop edi
pop esi
je 0x408849
call fcn.004013ad
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x54]
call fcn.004024bf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
push 0x80070057
call fcn.004010ca
int3