Function at 0x41e840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ad3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x41ecf5
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41ecf5
cmp dword [ebp + 0x14], 0
jne 0x41e88a
cmp dword [ebp + 0x18], 0
je 0x41ecf5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 1
or esi, 0xffffffff
call fcn.00402410
push dword [ebp + 0x1c]
mov edi, dword [ebp - 0x14]
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x28], 0
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x24], eax
call fcn.00422f80
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x41e91f
cmp dword [ebp - 0x40], 0
jne 0x41e91f
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0x78], 1
test eax, eax
je 0x41e915
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x88], 0
mov esi, 2
jmp 0x41ecad
lea ecx, [ebp - 0xb4]
call fcn.00421270
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
test ecx, ecx
cmovg eax, ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [edx + 0x14]
cmp dword [eax - 0xc], 0
je 0x41e970
push eax
lea ecx, [ebp - 0xb4]
call fcn.00421510
mov edx, dword [ebp + 8]
mov edi, edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push ebx
push eax
push edx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
call fcn.0041ed10
mov dword [ebp - 0x20], eax
cmp eax, 2
jne 0x41eb2d
cmp dword [ebp - 0x1c], 0
jne 0x41eb2d
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x41e9c5
xor ecx, ecx
jmp 0x41e9e5
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x41e9d0
xor ecx, ecx
jmp 0x41e9e5
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x41e9e8
test eax, eax
je 0x41e9e8
xor edx, edx
cmp eax, 0x80000
cmovb ecx, edx
mov dword [ebp + 0x1c], ecx
cmp dword [ebp - 0x30], 0
je 0x41eac0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x41ea13
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
imul edx, edx, 0x3e8
cmp dword [edi + 0xc], edx
cmova edx, dword [edi + 0xc]
mov dword [ebp - 0x24], edx
push ecx
push esi
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.004234d0
cmp eax, 1
jne 0x41ea52
cmp byte [edi + 0x28], 0
jne 0x41ea48
push dword [ebp + 0x30]
mov eax, dword [ebx + 0x10]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push eax
call fcn.0041e7e0
mov esi, 2
jmp 0x41eb2d
cmp eax, 2
jne 0x41ea6b
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x8c]
call fcn.00423410
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x30], 0
test edi, edi
jne 0x41ea81
lea esi, [edi - 2]
jmp 0x41eb2d
cmp dword [ebp + 0x14], 0
je 0x41ea95
lea ecx, [ebp - 0x8c]
call fcn.00423780
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x41eaaa
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x41eaaa
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x14]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x41eac0
mov eax, dword [edi + 0xc]
add eax, dword [edi + 4]
cmp eax, dword [ebp + 0x10]
je 0x41eac0
xor esi, esi
jmp 0x41eb2a
push dword [ebp + 0x30]
mov edi, dword [ebp - 0x68]
push dword [ebp + 0x2c]
lea eax, [ebp - 0x8c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0xb4]
push eax
push ebx
call fcn.0041f1c0
mov esi, eax
cmp esi, 0xffffffff
jne 0x41eb00
inc dword [ebp - 0x18]
jmp 0x41eb05
cmp esi, 2
je 0x41eb2d
cmp dword [ebp + 0x1c], 0
jne 0x41eb23
lea ecx, [ebp - 0x8c]
call fcn.004238e0
lea ecx, [ebp - 0x8c]
call fcn.00423410
jmp 0x41eb2d
test esi, esi
jne 0x41eb2d
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x10], eax
mov edi, dword [ebp - 0xac]
test edi, edi
je 0x41eb50
mov dword [ebp - 0xac], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp dword [ebp - 0x1c], 0
jne 0x41ebc9
cmp esi, 0xfffffffe
je 0x41ebce
cmp dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x20]
je 0x41eb79
cmp eax, 0xffffffff
jne 0x41eb87
lea ecx, [ebp - 0x8c]
call fcn.00423470
mov eax, dword [ebp - 0x38]
jmp 0x41ebb7
cmp eax, 0xffffffff
jne 0x41eb87
cmp dword [ebx + 4], 0x194
je 0x41ebc4
cmp esi, 2
je 0x41ebce
cmp esi, 1
je 0x41ebce
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x18]
jne 0x41eb9d
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 2
jge 0x41ebc4
call fcn.0041d030
test eax, eax
je 0x41ebc4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x24]
jae 0x41ebce
mov edi, dword [ebp - 0x14]
jmp 0x41e96b
or esi, 0xffffffff
jmp 0x41ebce
mov esi, 2
mov edi, dword [ebp - 0x68]
xor ebx, ebx
test edi, edi
je 0x41ebda
mov ebx, dword [edi + 0xc]
mov eax, dword [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41ebf1
push eax
call edi
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x41ec08
push eax
call edi
mov dword [ebp - 0x88], 0
cmp esi, 0xffffffff
jne 0x41ec3b
cmp dword [ebp + 0x1c], 0
je 0x41ec22
test ebx, ebx
je 0x41eca2
xor esi, esi
jmp 0x41eca2
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x41eca2
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, ebx
call fcn.00422ef0
jmp 0x41eca2
cmp esi, 2
je 0x41ec45
cmp esi, 1
jne 0x41eca2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41ec53
mov ecx, eax
call fcn.00422ef0
cmp esi, 2
jne 0x41eca2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0
mov ebx, dword [ebp + 0x18]
je 0x41ec79
cmp dword [edi + 0x1c], 0
je 0x41ec79
push ebx
push dword [ebp - 0x7c]
call fcn.00420090
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x41ec8e
cmp dword [edi + 0x18], 0
je 0x41ec8e
push ebx
push dword [ebp - 0x7c]
call fcn.0041fe70
cmp dword [edi + 4], 0x130
je 0x41eca2
lea ecx, [ebp - 0x8c]
call fcn.00423810
lea ecx, [ebp - 0xb4]
call fcn.00421310
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.004232a0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x2c]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ece0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0xfffffffe
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x2c