Function at 0x1004fe60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158840
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
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 0x1004fecc
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 0x1004feb6
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.10051d40
lea ecx, [esi + 0x58]
call fcn.1004f4d0
push str.MEMORY_
push dword [esi + 0x58]
call fcn.10138edb
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.10052410
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.10052410
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.10051da0
mov ecx, dword [esi + 0x58]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ffb7
sub ecx, edx
sar ecx, 1
cmp ecx, dword [esi + 0x5c]
jb 0x1004ffe0
push 0x101af208
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.1012b31d
cmp ecx, 3
jb 0x100501c8
lea ecx, [ebp - 0x30]
call fcn.100523d0
cmp eax, 2
jb 0x100501c8
lea ecx, [ebp - 0x28]
call fcn.100523d0
cmp eax, 2
jb 0x100501c8
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.1004fd80
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.1004fd80
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
push ebx
push 0
push 0x1004fd00
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.1004fe00
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.1004fe00
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
je 0x1005016a
mov eax, dword [edi]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100500a0
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jae 0x1004ffcb
test eax, eax
je 0x1005016a
push edi
lea ecx, [ebp - 0x28]
call fcn.10051d40
push dword [ebp - 0x18]
call fcn.10050eb0
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.10050eb0
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.1004fd80
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.1004fd80
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 0x1004fd00
push 0
push dword [ebp - 0x30]
call fcn.1004fe00
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.1004fe00
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
jne 0x10050094
push dword [ebp - 0x18]
call fcn.10050eb0
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.10050eb0
add esp, 4
mov ecx, esi
push dword [esi + 8]
call fcn.100503d0
cmp dword [esi + 0x10f4], 0
je 0x100501a6
cmp dword [esi + 8], 0
je 0x100501a6
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10d4], 0
jne 0x100501e9
cmp dword [esi + 0x10e8], 0
jne 0x100501e9
cmp dword [esi + 0x10e4], 0
jne 0x100501e9
mov esi, 1
jmp 0x100501eb
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.10050eb0
add esp, 4
push dword [ebp - 0x30]
call fcn.10050eb0
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