Function at 0x10891e2
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x430], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0x42c], ax
lea edi, [ebp - 0x42a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x18
or edi, 0xffffffff
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], ebx
cmp dword [esi + 0x68], ebx
je 0x1089478
cmp dword [esi + 0x28], ebx
je 0x1089478
cmp dword [esi + 8], ebx
je 0x1089478
cmp dword [esi + 0xc], 0x78
jb 0x1089478
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [esi + 0x28]
push dword [eax]
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0101d307
cmp eax, ebx
jge 0x10892e1
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x10894b0
test byte [ecx + 0x1c], 2
je 0x10894b0
push eax
push 0x1012400
push 0x7f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
jmp 0x10894b0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
jne 0x1089326
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10894b0
test byte [eax + 0x1c], 2
je 0x10894b0
push 0x1012400
push 0x80
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x10894b0
push dword [ebp + 0xc]
movzx ecx, word [ebp - 0x41e]
push ecx
movzx ecx, word [ebp - 0x420]
push ecx
movzx ecx, word [ebp - 0x422]
push ecx
movzx ecx, word [ebp - 0x424]
push ecx
movzx ecx, word [ebp - 0x426]
push ecx
movzx ecx, word [ebp - 0x42a]
push ecx
movzx ecx, word [ebp - 0x42c]
push ecx
push eax
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push dword [esi + 0x68]
push 0x1012598
push edi
push eax
call fcn.0103e1ed
add esp, 0x38
cmp eax, ebx
jge 0x10893b0
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x10894b0
test byte [ecx + 0x1c], 2
je 0x10894b0
push eax
push 0x1012400
push 0x81
jmp 0x10892d1
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1089413
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10894b0
test byte [eax + 0x1c], 2
je 0x10894b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10a60d8]
push 0x1012400
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x10894b0
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1089443
mov eax, dword [ebp - 0x418]
cmp eax, dword [esi + 0xc]
jne 0x1089443
mov dword [ebp - 0x41c], 1
jmp 0x108949c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108949c
test byte [eax + 0x1c], 2
je 0x108949c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10a60d8]
push 0x1012400
push 0x83
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x108949c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10894b0
test byte [eax + 0x1c], 2
je 0x10894b0
push 0x1012400
push 0x7e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
cmp edi, 0xffffffff
je 0x10894a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x41c], ebx
jne 0x10894bd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 8