Function at 0x1005e3e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161f41
mov eax, dword fs:[0]
push eax
mov eax, 0x2030
call fcn.1015dc90
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2028], eax
mov dword [ebp - 0x2030], ecx
test edi, edi
jne 0x1005e443
mov dword [esi + 0x744], 0xa0000037
xor eax, eax
jmp 0x1005ecbe
xorps xmm0, xmm0
mov dword [ebp - 0x1fd4], 0
movq qword [ebp - 0x1fdc], xmm0
mov dword [ebp - 0x1fdc], 0x101d1eb4
mov dword [ebp - 0x1fd8], 0
mov dword [ebp - 0x1fd4], 0
mov dword [ebp - 4], 0
movq qword [ebp - 0x1fc0], xmm0
mov dword [ebp - 0x1fb8], 0
mov dword [ebp - 0x1fc0], 0x101d1eb4
mov dword [ebp - 0x1fbc], 0
mov dword [ebp - 0x1fb8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x744], 0
test eax, eax
je 0x1005e4df
push eax
lea ecx, [ebp - 0x1fdc]
call fcn.100100c0
cmp dword [ebp - 0x1fd8], 0
je 0x1005e4df
lea ecx, [ebp - 0x1fdc]
call fcn.1000de30
mov edi, dword [ebp + 0xc]
mov ecx, esi
push edi
push dword [ebp - 0x201c]
call fcn.1005c8e0
cmp dword [esi + 0x73c], 0
je 0x1005e5d4
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x740], 0
call dword [eax + 0x6c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1fc8], xmm0
mov byte [ebp - 4], 2
push 0x10
mov dword [ebp - 0x1fc8], 0
mov dword [ebp - 0x1fc4], 0
call fcn.101427a2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x1fc8], eax
lea ecx, [ebp - 0x1fc8]
mov byte [ebp - 4], 3
mov eax, dword [esi]
push ecx
push dword [ebp - 0x2030]
mov ecx, esi
push dword [ebp - 0x2028]
mov eax, dword [eax + 0x68]
push edi
push dword [ebp - 0x201c]
call eax
mov ecx, dword [esi + 0x738]
mov edi, eax
cmp dword [ecx + 0x5c], 0
je 0x1005e589
push dword [esi + 4]
lea ecx, [ebp - 0x1fc8]
call fcn.10078b00
test edi, edi
je 0x1005e59d
cmp dword [esi + 0x740], 0
jne 0x1005e59d
mov edi, 1
jmp 0x1005e59f
xor edi, edi
mov ecx, dword [ebp - 0x1fc8]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1005e5c7
mov esi, dword [eax]
push 0x10
push eax
call fcn.10142794
add esp, 8
mov eax, esi
test esi, esi
jne 0x1005e5b4
push 0x10
push dword [ebp - 0x1fc8]
jmp 0x1005ec62
cmp dword [esi + 0x718], 0
jne 0x1005e6d2
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0xc], ecx
jbe 0x1005e6d2
nop
mov eax, dword [ebp - 0x201c]
mov edx, dword [eax + ecx*4]
test edx, edx
js 0x1005e6d2
cmp edx, dword [esi + 0x20]
jge 0x1005e6d2
mov eax, dword [esi + 0x18]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1005e6d2
mov eax, dword [eax + 0x24]
shr eax, 0xa
and al, 1
je 0x1005e623
inc edi
mov eax, dword [ebp + 0xc]
inc ecx
cmp ecx, eax
jb 0x1005e5f0
test edi, edi
je 0x1005e6d2
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1015d6d9
mov ecx, dword [ebp + 0xc]
shl ecx, 2
push ecx
push dword [ebp - 0x201c]
mov dword [ebp - 0x2014], eax
push eax
call fcn.10146160
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [ebp - 0x201c]
sub ecx, edi
xor edx, edx
mov dword [ebp - 0x2024], eax
lea edi, [eax + ecx*4]
nop dword [eax + eax]
mov eax, dword [ebp - 0x2014]
mov ecx, dword [eax + edx*4]
test ecx, ecx
js 0x1005e69a
cmp ecx, dword [esi + 0x20]
jge 0x1005e69a
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
jmp 0x1005e69c
xor eax, eax
mov eax, dword [eax + 0x24]
shr eax, 0xa
and al, 1
jne 0x1005e6b9
mov eax, dword [ebp - 0x2024]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x2024], eax
jmp 0x1005e6be
mov dword [edi], ecx
add edi, 4
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x1005e680
push dword [ebp - 0x2014]
call fcn.10142e8f
add esp, 4
mov edi, 1
xorps xmm0, xmm0
mov dword [ebp - 0x202c], edi
movlpd qword [ebp - 0x1fd0], xmm0
mov byte [ebp - 4], 4
push 0x10
mov dword [ebp - 0x1fd0], 0
mov dword [ebp - 0x1fcc], 0
call fcn.101427a2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x1fd0], eax
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x2024], eax
cmp dword [ebp + 0xc], eax
je 0x1005ebe1
lea ecx, [esi + 0x74c]
mov dword [ebp - 0x203c], ecx
cmp dword [ecx], 0
jne 0x1005ebd7
cmp dword [esi + 0x744], 0xa0000054
je 0x1005ebd7
mov ecx, dword [ebp - 0x201c]
mov ecx, dword [ecx + eax*4]
mov dword [ebp - 0x2014], ecx
test ecx, ecx
js 0x1005ebcd
cmp ecx, dword [esi + 0x20]
jge 0x1005ebcd
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x1005ebcd
cmp dword [edi + 0x64], 0
jne 0x1005eb3e
push dword [ebp - 0x2030]
mov edx, dword [ebp - 0x1fdc]
lea ecx, [ebp - 0x1fc0]
push dword [edi]
call fcn.1000dd70
add esp, 8
test eax, eax
je 0x1005eb90
mov eax, dword [edi + 0x24]
xorps xmm0, xmm0
shr eax, 4
mov ecx, esi
and eax, 1
mov dword [ebp - 0x2038], 0
mov dword [ebp - 0x2034], eax
lea eax, [ebp - 0x1fc0]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x2010], 0
push edi
mov dword [ebp - 0x1fb4], 0
movlpd qword [ebp - 0x1ff0], xmm0
call fcn.1005c7a0
test eax, eax
je 0x1005eb37
test dword [edi + 0x24], 0x400
je 0x1005e817
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x2014]
call dword [eax + 0x70]
push dword [ebp - 0x2028]
lea eax, [ebp - 0x1fb4]
push dword [esi + 4]
push eax
push dword [ebp - 0x2034]
mov eax, dword [esi + 0x730]
push dword [esi + 0x734]
push dword [ebp - 0x1fc0]
push edi
push dword [esi + 0x738]
call eax
mov ecx, eax
add esp, 0x20
mov dword [ebp - 0x2020], ecx
test ecx, ecx
jne 0x1005ea1f
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x1fb4]
mov dword [esi + 0x744], ecx
test edx, edx
je 0x1005e88c
cmp ecx, 0xa0000059
je 0x1005e88c
push dword [ebp - 0x203c]
mov eax, dword [edx]
push 0
push edi
push ecx
push edx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x1fb4]
cmp dword [esi + 0x73c], 0
je 0x1005e89f
mov dword [esi + 0x740], 1
mov eax, dword [ebp - 0x202c]
xor edx, edx
cmp ecx, 0xa0000059
cmovne eax, edx
mov dword [ebp - 0x202c], eax
cmp dword [ebp - 0x2024], edx
jne 0x1005ea0e
cmp ecx, 0xa0000062
jne 0x1005ea0e
mov edi, dword [ebp - 0x2028]
test edi, edi
je 0x1005eb37
push 0x1fa0
push edx
lea eax, [ebp - 0x1fb0]
mov dword [ebp - 0x2010], edx
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x1ff8], xmm0
call fcn.10143f10
add esp, 0xc
lea eax, [ebp - 0x1fc4]
push eax
push 0x1fa0
lea eax, [ebp - 0x1fb0]
push eax
push 7
push edi
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x1005eb83
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1005ebd7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
test edi, edi
je 0x1005eb76
lea eax, [ebp - 0x2010]
push eax
push 0
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1005eb76
lea eax, [ebp - 0x1fe4]
mov dword [ebp - 0x1fe0], 0x14
push eax
lea eax, [ebp - 0x1fe8]
push eax
lea eax, [ebp - 0x1fe0]
push eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x1ff8]
push eax
push 0x120116
push dword [ebp - 0x2010]
lea eax, [ebp - 0x1fb0]
push eax
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1005ebd7
cmp dword [ebp - 0x1fe4], 0
jne 0x1005e9c4
mov dword [ebp - 0x2014], 0
jmp 0x1005e9df
push 0x120116
push dword [ebp - 0x1fe8]
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
mov dword [ebp - 0x2014], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x1005e9fb
push eax
call edi
cmp dword [ebp - 0x2014], 1
jne 0x1005ebd7
mov ecx, dword [ebp - 0x1fb4]
cmp ecx, 0xa0000017
je 0x1005ebd7
jmp 0x1005eb37
cmp dword [ebp - 0x2028], 0
je 0x1005ea55
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [ebp - 0x2020]
test eax, eax
je 0x1005ea55
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
push eax
call fcn.10147912
mov ecx, dword [ebp - 0x2020]
add esp, 4
mov dword [ebp - 0x2010], eax
cmp dword [ebp - 0x2034], 0
jne 0x1005eaf4
lea eax, [ebp - 0x1ff0]
push eax
push ecx
push edi
push dword [ebp - 0x2014]
mov ecx, esi
call fcn.1005ece0
test eax, eax
jne 0x1005eac6
mov dword [ebp - 0x202c], eax
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
je 0x1005eac6
mov eax, dword [ebp - 0x1ff0]
or eax, dword [ebp - 0x1fec]
jne 0x1005eaa6
mov ecx, dword [ebp - 0x2020]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1005eadb
cmp dword [edi + 0x20], 0x10
jne 0x1005eac6
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
cmp eax, 0xa0000060
jne 0x1005eac6
mov dword [ebp - 0x2038], 1
mov ecx, dword [ebp - 0x2020]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0x2038], 0
je 0x1005eb24
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x1005eb5f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x2010]
jmp 0x1005eb2e
mov eax, dword [esi + 0x738]
cmp dword [eax + 0x5c], 0
je 0x1005eac6
push edi
push dword [ebp - 0x1fc0]
lea ecx, [ebp - 0x1fd0]
push dword [ebp - 0x1fdc]
call fcn.10078960
mov ecx, dword [ebp - 0x2020]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x1005eb37
push eax
call fcn.10146720
add esp, 4
mov ecx, esi
call fcn.1005ca60
mov eax, dword [ebp - 0x2024]
inc eax
mov dword [ebp - 0x2024], eax
cmp eax, dword [ebp + 0xc]
jae 0x1005ebdb
lea ecx, [esi + 0x74c]
jmp 0x1005e736
cmp dword [ebp - 0x2028], 0
je 0x1005eb37
push dword [ebp - 0x1fc0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1005eb37
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor edi, edi
jmp 0x1005ec32
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x1005ec32
mov ecx, dword [esi + 4]
mov dword [esi + 0x744], 0xa0000050
test ecx, ecx
je 0x1005ebb6
mov eax, dword [ecx]
lea edx, [esi + 0x74c]
push edx
push 0
push edi
push 0xa0000050
push ecx
call dword [eax + 0x14]
cmp dword [esi + 0x73c], 0
je 0x1005ebd7
mov dword [esi + 0x740], 1
xor edi, edi
jmp 0x1005ec32
mov dword [esi + 0x744], 0xa0000037
xor edi, edi
jmp 0x1005ec32
mov edi, dword [ebp - 0x202c]
push dword [esi + 0x7b0]
push 0x1017b290
call fcn.10090560
push dword [esi + 0x7b8]
mov dword [esi + 0x7b0], 0
push 0x1017b290
call fcn.10090560
mov dword [esi + 0x7b8], 0
add esp, 0x10
mov eax, dword [esi + 0x738]
cmp dword [eax + 0x5c], 0
je 0x1005ec32
push dword [esi + 4]
lea ecx, [ebp - 0x1fd0]
call fcn.10078b00
mov ecx, dword [ebp - 0x1fd0]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x1005ec5a
mov esi, dword [eax]
push 0x10
push eax
call fcn.10142794
add esp, 8
mov eax, esi
test esi, esi
jne 0x1005ec47
push 0x10
push dword [ebp - 0x1fd0]
call fcn.10142794
mov eax, dword [ebp - 0x1fc0]
add esp, 8
test eax, eax
je 0x1005ec84
cmp eax, 0x101d1eb4
je 0x1005ec84
push eax
call fcn.10146720
add esp, 4
mov eax, dword [ebp - 0x1fdc]
mov dword [ebp - 0x1fc0], 0x101d1eb4
mov dword [ebp - 0x1fbc], 0
mov dword [ebp - 0x1fb8], 0
test eax, eax
je 0x1005ecbc
cmp eax, 0x101d1eb4
je 0x1005ecbc
push eax
call fcn.10146720
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret 0x10