Function at 0x41bf84
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x4b4659
call fcn.004764c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1108], eax
je 0x41bfbb
lea eax, [edi + 0x10cc]
and dword [eax + 0x1c], 0
and dword [eax + 0x20], 0
mov dword [eax + 0x18], 0x3f3
jmp 0x41c1ee
xor esi, esi
cmp dword [edi + 0x10f0], esi
je 0x41c1ee
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x1104], eax
mov dword [edi + 0x10f4], esi
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [edi + 8], esi
mov word [eax], cx
mov eax, dword [edi + 0x14]
mov word [eax], cx
lea eax, [edi + 0x10cc]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [ebp - 0x10], eax
call fcn.0041888d
mov dword [edi + 0x4c], esi
mov esi, dword [ebp + 0x10]
lea ebx, [edi + 0x58]
push ebx
call fcn.00418318
mov esi, ebx
call fcn.00418559
push str.MEMORY_
push dword [ebx]
call fcn.004756d6
neg eax
sbb eax, eax
inc eax
pop ecx
mov dword [edi + 0x10f8], eax
pop ecx
lea eax, [ebp - 0x20]
call fcn.004181d5
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.004181d5
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00418587
pop ecx
push dword [edi + 0x58]
call fcn.00475ebe
pop ecx
cmp eax, dword [edi + 0x5c]
jb 0x41c06a
call fcn.00418240
cmp eax, 3
jb 0x41c1ca
push dword [ebp - 0x20]
call fcn.00475ebe
pop ecx
cmp eax, dword [ebp - 0x1c]
jb 0x41c086
call fcn.00418240
cmp eax, 2
jb 0x41c1ca
push dword [ebp - 0x18]
call fcn.00475ebe
pop ecx
cmp eax, dword [ebp - 0x14]
jb 0x41c0a2
call fcn.00418240
cmp eax, 2
jb 0x41c1ca
lea esi, [edi + 0x60]
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x30]
call fcn.0041810a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041810a
mov ebx, 0x41c3f9
jmp 0x41c120
push dword [esi]
call fcn.00475ebe
pop ecx
cmp eax, dword [esi + 4]
jb 0x41c0e2
call fcn.00418240
test eax, eax
je 0x41c15b
lea eax, [ebp - 0x18]
push eax
call fcn.00418318
push dword [ebp - 0x28]
call fcn.00476b34
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call fcn.00476b34
mov eax, dword [esi]
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x30]
call fcn.0041810a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041810a
push dword [ebp + 0x14]
mov byte [ebp - 4], 3
push 0
push ebx
push 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
call fcn.00418194
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
call fcn.00418194
push eax
push dword [edi + 0x10f0]
call dword [edi + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x41c0d0
push dword [ebp - 0x28]
call fcn.00476b34
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x30]
call fcn.00476b34
mov esi, dword [ebp + 8]
mov edi, dword [edi + 8]
pop ecx
mov eax, esi
call fcn.0041c723
xor edi, edi
cmp dword [esi + 0x10f4], edi
je 0x41c196
cmp dword [esi + 8], edi
je 0x41c196
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], edi
jne 0x41c1ac
cmp dword [eax + 0x1c], edi
jne 0x41c1ac
cmp dword [eax + 0x18], edi
jne 0x41c1ac
xor esi, esi
jmp 0x41c1af
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.00476b34
pop ecx
push dword [ebp - 0x20]
call fcn.00476b34
xor eax, eax
cmp esi, edi
pop ecx
sete al
jmp 0x41c1f0
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
and dword [eax + 0x1c], 0
and dword [eax + 0x20], 0
mov dword [eax + 0x18], 0x3ea
call fcn.00476b34
pop ecx
push dword [ebp - 0x20]
call fcn.00476b34
pop ecx
xor eax, eax
call fcn.00476598
ret 0x10