Function at 0x10b5c40
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
push edi
mov edi, dword [eax]
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x5c]
xor edx, edx
cmp word [esi + 0xa0], dx
mov dword [ebp - 0x274], ecx
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x270], esi
je 0x10b5cee
cmp dword [esi + 0x90], edx
jne 0x10b5cee
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
cmp word [eax + 4], 1
jne 0x10b5cbb
push eax
call fcn.010a67fc
mov edi, eax
jmp 0x10b5cc5
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea esi, [ebx + 0x254]
push dword [esi]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov dword [esi], eax
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [ebx + reloc.KERNEL32.dll_GetTapeParameters], ax
pop ecx
mov ax, di
jmp 0x10b6488
lea ecx, [ebx + 4]
cmp dword [ecx], edx
je 0x10b5d0e
push ecx
xor eax, eax
push eax
push 1
push eax
push eax
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov eax, dword [ebp - 0x260]
xor edx, edx
mov ecx, dword [ebx]
cmp ecx, edx
je 0x10b5df7
cmp word [eax + 4], 1
jne 0x10b5dbe
cmp word [esi + 0x44], dx
je 0x10b5dae
lea eax, [esi + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
test eax, eax
jne 0x10b5dae
push eax
push 1
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10b6411
lea eax, [ebp - 0x254]
push eax
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
je 0x10b5da8
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10b5d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x26c], eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.010b4b1b
lea eax, [esi + 0x70]
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x60]
push eax
push dword [ebx]
jmp 0x10b5dd0
mov eax, dword [edi + 4]
test byte [eax + 0x60], 8
je 0x10b5dd6
push 0
lea eax, [esi + 0x68]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10b5df1
mov dword [ebp - 0x25c], 0xfffffe0b
jmp 0x10b5ed6
mov eax, dword [ebp - 0x260]
cmp word [eax + 4], 1
jne 0x10b5e6e
push 0x1011c84
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b5e6e
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [esi + 0x7c]
push 0x1011d98
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0x14
push dword [ebp - 0x268]
push dword [ebp - 0x25c]
push dword [ebp - 0x27c]
push edi
call fcn.010a63e5
test eax, eax
je 0x10b5e6e
push eax
push dword [ebp - 0x260]
call fcn.010a6d33
test ax, ax
mov dword [ebp - 0x25c], eax
jne 0x10b5ed6
mov eax, dword [ebp - 0x260]
call fcn.010b5b65
test ax, ax
mov dword [ebp - 0x25c], eax
jne 0x10b5ed6
mov eax, dword [ebp - 0x260]
cmp word [eax + 4], 1
jne 0x10b5ed6
mov eax, dword [ebp - 0x278]
cmp dword [eax + 0x80], 4
jne 0x10b5ed6
push 0
push 0
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10b5ed6
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call fcn.010a5a93
push edi
mov dword [ebp - 0x25c], eax
call fcn.010b4b1b
mov eax, dword [ebx + 0x24c]
test eax, eax
je 0x10b6219
mov ecx, dword [ebp - 0x260]
cmp word [ecx + 4], 1
je 0x10b5f0b
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10b6205
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10b6205
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10b6205
push 0
push 0
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10b6205
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], ax
je 0x10b612a
mov eax, dword [esi + 0x7c]
push 0x100bbdc
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10b5ffe
mov esi, dword [ebp - 0x274]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10b5f81
mov edi, dword [sym.imp.msvcrt.dll_free]
push eax
call edi
push dword [esi + 0x3c]
call edi
pop ecx
pop ecx
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x38], eax
je 0x10b6411
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
push eax
call edi
push dword [ebx + 0x24c]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 0x10
test eax, eax
mov dword [esi + 0x3c], eax
je 0x10b5fef
push dword [ebx + 0x24c]
push eax
call edi
pop ecx
pop ecx
mov dword [ebp - 0x25c], 0xfffffeb4
jmp 0x10b61ee
push dword [esi + 0x38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10b6411
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10b612a
push reloc.ADVAPI32.dll_CloseServiceHandle
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call fcn.010ad678
mov esi, eax
test esi, esi
je 0x10b611e
push esi
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call fcn.010b3b8a
mov eax, dword [ebp - 0x260]
mov eax, dword [eax]
push esi
push dword [ebx + 0x24c]
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
push dword [eax + 4]
call fcn.01098ed4
cmp ax, 0xfeb4
mov dword [ebp - 0x25c], eax
je 0x10b61ee
xor eax, eax
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
jne 0x10b61e4
mov ecx, dword [ebp - 0x264]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 0x5c]
cmp word [ecx + 4], ax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push eax
je 0x10b608f
lea eax, [esi + 8]
push eax
jmp 0x10b6090
push esi
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [esp], 0x1005a94
call esi
push dword [ebx + 0x24c]
mov dword [ebp - 0x274], eax
call esi
mov ecx, dword [ebp - 0x274]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10b5fe0
push dword [ebx + 0x24c]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x1005a94
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x5c]
add esp, 0x10
xor eax, eax
cmp word [ecx + 4], ax
push 5
push eax
je 0x10b610f
lea eax, [esi + 8]
push eax
jmp 0x10b6110
push esi
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10b5fdf
or dword [ebp - 0x25c], 0xffffffff
jmp 0x10b61ee
cmp word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
jne 0x10b6145
push dword [ebx + 0x24c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10b61e4
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x10b6153
push 0x80
jmp 0x10b6154
push esi
push dword [ebx + 0x24c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x5c]
cmp word [eax + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
je 0x10b618b
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
add eax, 8
push eax
mov eax, dword [ebx + 0x24c]
add eax, 8
push eax
jmp 0x10b6197
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
push dword [ebx + 0x24c]
call esi
xor edi, edi
cmp ax, di
jne 0x10b5fe0
mov eax, dword [ebp - 0x264]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
cmp word [eax + 4], di
push edi
je 0x10b61cd
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
add eax, 8
push eax
mov eax, dword [ebx + 0x24c]
add eax, 8
push eax
jmp 0x10b61d9
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
push dword [ebx + 0x24c]
call esi
cmp ax, di
jne 0x10b5fe0
mov dword [ebp - 0x25c], 0xfffffe05
push dword [ebp - 0x264]
call fcn.010b4b1b
mov esi, dword [ebp - 0x270]
mov edi, dword [ebp - 0x264]
push dword [ebx + 0x24c]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebx + 0x24c], 0
pop ecx
xor ecx, ecx
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], cx
je 0x10b6233
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0xfeb4
jne 0x10b6374
mov eax, dword [ebp - 0x260]
mov ax, word [eax + 4]
cmp ax, 1
je 0x10b6269
cmp ax, cx
jne 0x10b6374
test byte [esi + 0x40], 0x20
je 0x10b6374
cmp ax, 1
je 0x10b6269
mov eax, dword [edi + 0x14]
cmp word [eax + 0x18], cx
je 0x10b6374
mov eax, dword [edi + 0x14]
test byte [eax + 0x9f], 4
je 0x10b6303
push 0
push 0
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10b6411
lea eax, [ebp - 0x254]
push eax
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and dword [ebp - 0x268], 0
cmp eax, 0xffffffff
je 0x10b62f0
mov edi, dword [ebp - 0x270]
push 2
add edi, 0x70
pop ecx
lea esi, [ebp - 0x240]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10b62dd
mov dword [ebp - 0x268], 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x270]
mov edi, dword [ebp - 0x264]
push edi
call fcn.010b4b1b
xor ecx, ecx
inc ecx
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10b6374
push 0
push ecx
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
jne 0x10b6411
mov ecx, dword [ebp - 0x260]
cmp word [ecx + 4], 0
mov eax, dword [esi + 0x40]
jne 0x10b6346
test ah, 4
je 0x10b6346
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x260]
cmp word [ecx + 4], 1
je 0x10b6356
and eax, 0xffffffdf
test eax, eax
jne 0x10b6361
push 0x80
jmp 0x10b6362
push eax
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.010b4b1b
mov eax, dword [ebp - 0x260]
cmp word [eax + 4], 0
jne 0x10b63d0
cmp dword [esi + 0x9c], 1
jbe 0x10b63d0
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push edi
call fcn.010a63e5
test eax, eax
jne 0x10b63d0
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x90]
push edi
call fcn.010a6722
mov eax, dword [ebp - 0x25c]
test ax, ax
je 0x10b63e5
cmp ax, 0xfeb4
jne 0x10b6488
cmp dword [ebp - 0x26c], 0
je 0x10b6488
push 0
push 1
lea eax, reloc.KERNEL32.dll_GetTapeParameters
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
push dword [edi + 0xc]
push edi
call fcn.010b51f9
test ax, ax
je 0x10b6417
or ax, reloc.ADVAPI32.dll_RegDeleteValueW
jmp 0x10b6488
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
push 8
push 0x1011dd4
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b6448
add dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], 0xc
mov eax, dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
mov dword [eax], 0x5c005c
jmp 0x10b6465
push 4
push 0x1005db4
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
call esi
add esp, 0xc
test eax, eax
jne 0x10b6465
add dword [ebp - reloc.KERNEL32.dll_GetTapeParameters], 8
push dword [ebp - reloc.KERNEL32.dll_GetTapeParameters]
push 0x233a
push dword [ebp - 0x26c]
push 0
push edi
call fcn.010892e6
push edi
call fcn.010b4b1b
mov ax, 0xfe3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4