Function at 0x10b0a58
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.010b0a1a
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 0x10b0acb
mov word [ebp - 0x1a], ReadEncryptedFileRaw
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3d
jmp 0x10b0ad2
mov ecx, dword [ebp - 0x50]
mov word [ebp - 0x1a], dx
mov ax, word [ebx + 0x3c]
cmp ax, dx
mov word [ebp - 0x18], ax
je 0x10b0ae8
mov word [ebp - 0x16], cx
add ecx, dword [ebp - 0x18]
jmp 0x10b0aec
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 0x10b0bc2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b0bc2
cmp word [ebp - 0x1c], 0
je 0x10b0b6c
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 0x10b0bc2
cmp word [ebp - 0x18], 0
je 0x10b0b90
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 0x10b0bc2
cmp word [ebp - 0x14], 0
je 0x10b0bb4
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 0x10b0bc2
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10b0be5
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010af70e
mov word [esi + 0xd6], di
mov word [esi + 0xd4], di
mov ax, 0xfde7
jmp 0x10b0d04
mov eax, dword [ebp - 0x48]
cmp word [eax + 0xd2], 2
jne 0x10b0d01
cmp word [eax + 0xd4], 0
jne 0x10b0d01
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 0x10b0cad
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b0cad
cmp word [ebp - 0x1c], 0
je 0x10b0c89
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 0x10b0c89
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010af70e
mov word [esi + 0xd6], di
mov bx, 0xfde7
jmp 0x10b0cbe
cmp word [ebp - 0x18], 0
je 0x10b0cca
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 0x10b0cca
push edi
push 0
push dword [ebp - 0x48]
xor bx, bx
call fcn.010af70e
mov esi, dword [ebp - 0x48]
mov word [esi + 0xd4], di
mov ax, bx
jmp 0x10b0d04
cmp word [ebp - 0x14], 0
je 0x10b0d01
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 0x10b0d01
mov esi, dword [ebp - 0x48]
push edi
push 0
push esi
call fcn.010af70e
mov word [esi + 0xd4], di
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc