Function at 0x1004fdb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101b90ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x1108], eax
je 0x1004fe1c
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], 0
mov dword [esi + 0x10ec], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x10f0], 0
je 0x1004fe06
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x1104], ebx
xorps xmm0, xmm0
mov dword [esi + 0x10f4], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 8], 0
mov word [eax], cx
mov eax, dword [esi + 0x14]
mov word [eax], cx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x10e4], ecx
mov dword [esi + 0x10e8], ecx
mov dword [esi + 0x10ec], ecx
movq qword [esi + 0x10cc], xmm0
mov dword [esi + 0x10d4], ecx
mov dword [esi + 0x4c], ecx
lea ecx, [esi + 0x58]
call fcn.10051c90
lea ecx, [esi + 0x58]
call fcn.1004f420
push str.MEMORY_
push dword [esi + 0x58]
call fcn.1013860b
add esp, 8
mov dword [ebp - 0x30], 0
neg eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x30]
sbb eax, eax
inc eax
push 0x12c
mov dword [esi + 0x10f8], eax
call fcn.10052360
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
push 0x12c
call fcn.10052360
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10051cf0
mov ecx, dword [esi + 0x58]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ff07
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x5c]
jb 0x1004ff30
push 0x101ae030
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.1012a9dd
cmp ecx, 3
jb 0x10050118
lea ecx, [ebp - 0x30]
call fcn.10052320
cmp eax, 2
jb 0x10050118
lea ecx, [ebp - 0x28]
call fcn.10052320
cmp eax, 2
jb 0x10050118
mov eax, dword [esi + 0x60]
lea edi, [esi + 0x60]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov word [eax], cx
lea ecx, [ebp - 0x20]
push 0x12c
call fcn.1004fcd0
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x12c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1004fcd0
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
push ebx
push 0
push 0x1004fc50
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.1004fd50
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.1004fd50
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
je 0x100500ba
mov eax, dword [edi]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004fff0
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jae 0x1004ff1b
test eax, eax
je 0x100500ba
push edi
lea ecx, [ebp - 0x28]
call fcn.10051c90
push dword [ebp - 0x18]
call fcn.10050e00
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.10050e00
mov eax, dword [edi]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov word [eax], cx
lea ecx, [ebp - 0x20]
push 0x12c
call fcn.1004fcd0
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x12c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1004fcd0
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
push 0
push 0x1004fc50
push 0
push dword [ebp - 0x30]
call fcn.1004fd50
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.1004fd50
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
jne 0x1004ffe4
push dword [ebp - 0x18]
call fcn.10050e00
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.10050e00
add esp, 4
mov ecx, esi
push dword [esi + 8]
call fcn.10050320
cmp dword [esi + 0x10f4], 0
je 0x100500f6
cmp dword [esi + 8], 0
je 0x100500f6
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10d4], 0
jne 0x10050139
cmp dword [esi + 0x10e8], 0
jne 0x10050139
cmp dword [esi + 0x10e4], 0
jne 0x10050139
mov esi, 1
jmp 0x1005013b
mov ebx, dword [ebp - 0x28]
mov dword [esi + 0x10e4], 0x3ea
mov dword [esi + 0x10e8], 0
mov dword [esi + 0x10ec], 0
xor esi, esi
push ebx
call fcn.10050e00
add esp, 4
push dword [ebp - 0x30]
call fcn.10050e00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc