Function at 0x10b08ca
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10de03c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 0xf8]
push esi
mov dword [ebp - 0x4c], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], ReadEncryptedFileRaw
mov dword [ebp - 0x42], 0x424c4f56
call fcn.010b088c
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x44]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
mov dword [ebp - 0x20], eax
mov ax, word [ebx + 0x38]
cmp ax, dx
mov word [ebp - 0x10], dx
mov word [ebp - 0xe], dx
mov word [ebp - 0x1c], ax
je 0x10b093d
mov word [ebp - 0x1a], ReadEncryptedFileRaw
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3d
jmp 0x10b0944
mov ecx, dword [ebp - 0x50]
mov word [ebp - 0x1a], dx
mov ax, word [ebx + 0x3c]
cmp ax, dx
mov word [ebp - 0x18], ax
je 0x10b095a
mov word [ebp - 0x16], cx
add ecx, dword [ebp - 0x18]
jmp 0x10b095e
mov word [ebp - 0x16], dx
mov ax, word [ebx + 0x40]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
mov word [ebp - 0x14], ax
neg ax
mov dword [ebp - 0x28], edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
xor edi, edi
lea eax, [eax + ecx + 0x3d]
inc edi
push edi
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b0a34
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b0a34
cmp word [ebp - 0x1c], 0
je 0x10b09de
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
jne 0x10b0a34
cmp word [ebp - 0x18], 0
je 0x10b0a02
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
jne 0x10b0a34
cmp word [ebp - 0x14], 0
je 0x10b0a26
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
jne 0x10b0a34
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10b0a57
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010af580
mov word [esi + 0xd6], di
mov word [esi + 0xd4], di
mov ax, 0xfde7
jmp 0x10b0b76
mov eax, dword [ebp - 0x48]
cmp word [eax + 0xd2], 2
jne 0x10b0b73
cmp word [eax + 0xd4], 0
jne 0x10b0b73
mov ecx, dword [eax + 0xf0]
mov eax, dword [eax + 0x3ac]
push ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.msvcrt.dll_ftell]
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push edi
mov dword [ecx + 0x3ac], eax
lea eax, [ebp - 0x44]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call esi
add esp, 0x14
cmp eax, edi
jne 0x10b0b1f
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b0b1f
cmp word [ebp - 0x1c], 0
je 0x10b0afb
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
je 0x10b0afb
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010af580
mov word [esi + 0xd6], di
mov bx, 0xfde7
jmp 0x10b0b30
cmp word [ebp - 0x18], 0
je 0x10b0b3c
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
je 0x10b0b3c
push edi
push 0
push dword [ebp - 0x48]
xor bx, bx
call fcn.010af580
mov esi, dword [ebp - 0x48]
mov word [esi + 0xd4], di
mov ax, bx
jmp 0x10b0b76
cmp word [ebp - 0x14], 0
je 0x10b0b73
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
je 0x10b0b73
mov esi, dword [ebp - 0x48]
push edi
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], di
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc