Function at 0x100164e0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011c5b1
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x1016b2e8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1001f680
mov dword [esp + 0x60], esi
push 1
push 0x10164454
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
call fcn.10002270
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x70], 1
push edx
mov dword [esp + 0x2c], 1
call fcn.10016120
mov ebx, dword [esp + 0x40]
add esp, 0x14
test al, al
jne 0x10016594
mov ecx, dword [esp + 0x30]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x17], 1
je 0x10016599
mov byte [esp + 0x17], 0
mov dword [esp + 0x60], esi
cmp dword [esp + 0x50], 0x10
jb 0x100165b5
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.100618cf
mov ebx, dword [esp + 0x30]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x10016610
cmp ebx, esi
je 0x100165e2
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push edx
mov eax, ebx
call fcn.100114e0
mov eax, dword [esp + 0x30]
add esp, 4
push eax
call fcn.100618cf
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.100618cf
add esp, 4
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ebx
cmp ebx, dword [esp + 0x30]
jbe 0x10016621
call fcn.10061d20
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
add esi, 4
lea esp, [esp]
mov edi, dword [esp + 0x30]
cmp ebx, edi
jbe 0x10016641
call fcn.10061d20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001664b
cmp eax, dword [esp + 0x20]
je 0x10016654
call fcn.10061d20
mov eax, dword [esp + 0x18]
lea ebx, [esi - 4]
cmp ebx, edi
je 0x1001671c
test eax, eax
jne 0x10016682
call fcn.10061d20
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10016674
call fcn.10061d20
mov edi, 0x10
cmp dword [esi + 0x14], edi
jb 0x10016686
mov eax, dword [esi]
jmp 0x10016688
mov eax, dword [eax]
jmp 0x1001666a
mov eax, esi
push 0
push eax
call fcn.10062018
add esp, 8
test eax, eax
jne 0x100166ef
cmp dword [esi + 0x14], edi
jb 0x100166a0
mov eax, dword [esi]
jmp 0x100166a2
mov eax, esi
push 0
push eax
call fcn.10062018
add esp, 8
test eax, eax
jne 0x100166dd
cmp dword [esi + 0x14], edi
jb 0x100166ba
mov eax, dword [esi]
jmp 0x100166bc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x100166ca
and eax, 0xfffffffe
cmp dword [esi + 0x14], edi
jb 0x100166d3
mov ecx, dword [esi]
jmp 0x100166d5
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x14], edi
jb 0x100166e6
mov eax, dword [esi]
jmp 0x100166e8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10016718
call fcn.10061d20
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10016708
call fcn.10061d20
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add esi, 0x1c
jmp 0x10016630
mov eax, dword [eax]
jmp 0x100166fe
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, ebx
jbe 0x10016731
call fcn.10061d20
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
cmp edi, dword [esp + 0x30]
jbe 0x10016740
call fcn.10061d20
mov edx, dword [esp + 0x20]
push ebx
push esi
push edi
push edx
lea ebx, [esp + 0x28]
lea esi, [esp + 0x30]
call fcn.1000da80
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, esi
je 0x1001677d
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push ecx
call fcn.100114e0
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.100618cf
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.100618cf
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret