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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10ed860]
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 0x10b7d0d
cmp dword [esi + 0x28], ebx
je 0x10b7d0d
cmp dword [esi + 8], ebx
je 0x10b7d0d
cmp dword [esi + 0xc], 0x78
jb 0x10b7d0d
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.0104e20e
cmp eax, ebx
jge 0x10b7b76
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10b7d45
test byte [ecx + 0x1c], 2
je 0x10b7d45
push eax
push 0x100b054
push 0x7f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
jmp 0x10b7d45
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, ebx
jne 0x10b7bbb
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b7d45
test byte [eax + 0x1c], 2
je 0x10b7d45
push 0x100b054
push 0x80
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10b7d45
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 0x100b1e8
push edi
push eax
call fcn.010aceee
add esp, 0x38
cmp eax, ebx
jge 0x10b7c45
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10b7d45
test byte [ecx + 0x1c], 2
je 0x10b7d45
push eax
push 0x100b054
push 0x81
jmp 0x10b7b66
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 0x10b7ca8
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b7d45
test byte [eax + 0x1c], 2
je 0x10b7d45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push 0x100b054
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10b7d45
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 0x10b7cd8
mov eax, dword [ebp - 0x418]
cmp eax, dword [esi + 0xc]
jne 0x10b7cd8
mov dword [ebp - 0x41c], 1
jmp 0x10b7d31
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b7d31
test byte [eax + 0x1c], 2
je 0x10b7d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x10ed030]
push 0x100b054
push 0x83
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10b7d31
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10b7d45
test byte [eax + 0x1c], 2
je 0x10b7d45
push 0x100b054
push 0x7e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
cmp edi, 0xffffffff
je 0x10b7d3d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x41c], ebx
jne 0x10b7d52
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.010a0b37
leave
ret 8