Function at 0x10058dd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017eecb
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.10178bb0
mov eax, dword [0x101e6040]
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 eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1fec], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1fb8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1fc4], eax
mov eax, dword [edi + 0x24]
shr eax, 4
and eax, 1
movq qword [ebp - 0x1fd0], xmm0
mov dword [ebp - 0x2054], eax
mov eax, dword [0x101c5980]
mov dword [ebp - 0x1fc8], 0
mov dword [ebp - 0x2048], edi
mov dword [ebp - 0x204c], ecx
mov dword [ebp - 0x1fbc], 0
mov dword [ebp - 0x2050], eax
mov dword [ebp - 0x1fd0], eax
mov dword [ebp - 0x1fcc], 0
mov dword [ebp - 0x1fc8], 0
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, esi
push edi
mov dword [ebp - 0x1fb4], 0
movlpd qword [ebp - 0x205c], xmm0
call fcn.10057630
test eax, eax
jne 0x10058eb4
lea esi, [eax + 1]
jmp 0x10059353
test dword [edi + 0x24], 0x400
je 0x10058ec8
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp + 0x10]
call dword [eax + 0x7c]
xor eax, eax
mov dword [ebp - 0x202c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2028], 7
movups xmmword [ebp - 0x203c], xmm0
mov word [ebp - 0x203c], ax
movups xmmword [ebp - 0x2024], xmm0
mov word [ebp - 0x2014], 0x100
mov byte [ebp - 0x2012], al
movlpd qword [ebp - 0x200c], xmm0
mov dword [ebp - 0x2004], 0xff
mov byte [ebp - 0x2000], al
mov dword [ebp - 0x1ffc], eax
mov dword [ebp - 0x1ff8], 0xffffffff
mov dword [ebp - 0x1ff4], eax
mov edx, dword [ebp - 0x204c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2044], edi
mov dword [ebp - 0x2040], edi
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1fc0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10058f56
sub ecx, dword [ebp - 0x1fc0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x203c]
call fcn.10008d20
mov eax, dword [esi + 0x72c]
mov ecx, dword [esi + 0x744]
mov dword [ebp - 0x2024], eax
mov eax, dword [ebp - 0x2054]
mov dword [ebp - 0x2020], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x201c], eax
mov eax, dword [ebp - 0x1fec]
mov dword [ebp - 0x2018], eax
cmp ecx, 0x2e
je 0x10058fba
mov byte [ebp - 0x2013], 1
cmp ecx, 0x2f
jne 0x10058fc1
mov byte [ebp - 0x2013], 0
mov byte [ebp - 0x2000], 1
lea eax, [esi + 0x3c]
mov dword [ebp - 0x1ffc], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1ff8], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1ff4], eax
mov dword [ebp - 0x2004], ecx
cmp ecx, 0xd
jne 0x10059017
cmp dword [edi + 0x70], 0
je 0x10059017
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
test ecx, ecx
jl 0x10059017
jg 0x10059004
test eax, eax
jb 0x10059017
mov byte [ebp - 0x2012], 1
mov dword [ebp - 0x200c], eax
mov dword [ebp - 0x2008], ecx
lea eax, [ebp - 0x1fb4]
push eax
lea eax, [ebp - 0x2044]
push eax
push dword [esi + 0x730]
mov eax, dword [esi + 0x728]
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1005922e
mov edi, dword [esi + 8]
mov edx, dword [ebp - 0x1fb4]
mov dword [esi + 0x74c], edx
test edi, edi
je 0x10059077
cmp edx, 0xa0000059
je 0x10059077
mov ecx, dword [edi]
lea eax, [esi + 0x754]
push eax
push 0
push dword [ebp - 0x2048]
push edx
push edi
call dword [ecx + 0x14]
mov edx, dword [ebp - 0x1fb4]
cmp byte [esi + 0x734], 0
je 0x1005908a
mov dword [esi + 0x748], 1
cmp edx, 0xa0000059
je 0x1005909e
mov eax, dword [ebp - 0x1fb8]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x1005920e
cmp edx, 0xa0000062
jne 0x1005920e
mov esi, dword [ebp - 0x1fec]
test esi, esi
je 0x10059343
push 0x1f9f
lea eax, [ebp - 0x1faf]
mov dword [ebp - 0x1fd4], 0
push 0
push eax
mov dword [ebp - 0x1fd0], 0
mov dword [ebp - 0x1fcc], 0
mov dword [ebp - 0x1fc8], 0
mov dword [ebp - 0x1fec], 0
mov byte [ebp - 0x1fb0], 0
call fcn.10152e30
add esp, 0xc
lea eax, [ebp - 0x1fc4]
push eax
push 0x1fa0
lea eax, [ebp - 0x1fb0]
push eax
push 7
push esi
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x1005913e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x10059348
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x1005921a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
test esi, esi
je 0x10059221
lea eax, [ebp - 0x1fec]
push eax
push 0
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x10059221
lea eax, [ebp - 0x1fbc]
mov dword [ebp - 0x1fc0], 0x14
push eax
lea eax, [ebp - 0x1fb8]
push eax
lea eax, [ebp - 0x1fc0]
push eax
lea eax, [ebp - 0x1fe8]
push eax
lea eax, [ebp - 0x1fd4]
push eax
push 0x120116
push dword [ebp - 0x1fec]
lea eax, [ebp - 0x1fb0]
push eax
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
je 0x1005921a
cmp dword [ebp - 0x1fbc], 0
jne 0x100591d1
xor edi, edi
jmp 0x100591e7
push 0x120116
push dword [ebp - 0x1fb8]
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x1fec]
test eax, eax
je 0x10059203
push eax
call esi
cmp edi, 1
jne 0x1005921a
mov edx, dword [ebp - 0x1fb4]
cmp edx, 0xa0000017
jne 0x10059343
xor esi, esi
jmp 0x10059348
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor esi, esi
jmp 0x10059348
cmp dword [ebp - 0x1fec], 0
je 0x10059265
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
test eax, eax
je 0x10059265
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push eax
lea ecx, [ebp - 0x1fd0]
call fcn.1000bc60
mov eax, dword [ebp - 0x1fd0]
mov dword [ebp - 0x2050], eax
cmp dword [ebp - 0x2054], 0
jne 0x100592fa
lea eax, [ebp - 0x205c]
mov ecx, esi
push eax
push edi
push dword [ebp - 0x2048]
push dword [ebp + 0x10]
call fcn.10059390
test eax, eax
jne 0x100592da
mov eax, dword [ebp - 0x1fb8]
mov ecx, dword [ebp - 0x2048]
mov dword [eax], 0
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x1c]
je 0x100592da
mov eax, dword [ebp - 0x205c]
or eax, dword [ebp - 0x2058]
jne 0x100592be
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x100592e9
cmp dword [ecx + 0x20], 0x10
jne 0x100592da
cmp dword [esi + 0x74c], 0xa0000060
jne 0x100592da
mov dword [ebp - 0x1fbc], 1
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 0x1fbc], 0
je 0x10059343
cmp dword [ebp - 0x1fcc], 0
je 0x1005932c
push dword [ebp - 0x2050]
jmp 0x1005933d
mov eax, dword [esi + 0x730]
cmp dword [eax + 0x68], 0
je 0x100592da
mov eax, dword [ebp - 0x204c]
push dword [ebp - 0x2048]
mov ecx, dword [ebp - 0x1fc4]
push dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.10085b00
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10059343
cmp dword [ebp - 0x1fec], 0
je 0x10059343
mov eax, dword [ebp - 0x204c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
lea ecx, [ebp - 0x203c]
call fcn.100031a0
mov eax, dword [ebp - 0x2050]
test eax, eax
je 0x1005936e
cmp eax, dword [0x101c5980]
je 0x1005936e
push eax
call fcn.10154f5a
add esp, 4
mov eax, esi
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.10151433
mov esp, ebp
pop ebp
ret 0x20