Function at 0x10b1a12
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x10de03c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x54]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xf8]
push edi
mov dword [ebp - 0x90], ecx
mov ecx, dword [esi + 0xf4]
xor edi, edi
mov dword [ebp - 0x94], ecx
mov ecx, dword [esi + 0x15c]
inc edi
cmp word [eax + 0x70], di
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x8c], ecx
jne 0x10b1a81
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x10b1a81
cmp dword [ebx + 0x50], 0x400
je 0x10b1ca2
test byte [eax], 8
jne 0x10b1ca2
mov ebx, dword [sym.imp.msvcrt.dll_fseek]
push 0
push ecx
push edx
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1bac
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push edi
push 0x5b
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10b1ad3
push edi
push 2
push esi
call fcn.010af580
mov word [esi + 0xd6], di
jmp 0x10b1f32
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x8c]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x88]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1bac
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push edi
push 0x5b
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10b1bac
movzx eax, word [ebp - 0x84]
add dword [ebp - 0x8c], eax
push 0
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1bac
push dword [ebp - 0x88]
lea eax, [ebp - 0x28]
push edi
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x10b1bac
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x8c]
inc eax
push dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x1c], eax
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1bac
push dword [ebp - 0x88]
lea eax, [ebp - 0x28]
push edi
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10b1bac
push 2
push 0
push dword [ebp - 0x88]
call ebx
add esp, 0xc
test eax, eax
je 0x10b1bc8
push edi
push 2
push esi
call fcn.010af580
mov word [esi + 0xd4], di
mov word [esi + 0xd6], di
jmp 0x10b1d7a
cmp word [esi + 0xd2], 2
jne 0x10b1c9c
cmp word [esi + 0xd4], 0
jne 0x10b1c9c
mov eax, dword [esi + 0x3ac]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
push 0
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1f29
push dword [ebp - 0x90]
lea eax, [ebp - 0x28]
push edi
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jne 0x10b1c8c
mov eax, dword [ebp - 0x88]
and dword [ebp - 0x18], 0
inc dword [ebp - 0x88]
push 0
push dword [ebp - 0x8c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x90]
call ebx
add esp, 0xc
test eax, eax
jne 0x10b1f29
push dword [ebp - 0x90]
lea eax, [ebp - 0x28]
push edi
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10b1f29
movzx eax, word [ebp - 0x28]
add dword [ebp - 0x8c], eax
jmp 0x10b1bfc
mov eax, dword [ebp - 0x90]
test byte [eax + 0xc], 0x10
je 0x10b1f29
mov eax, dword [ebp - 0x9c]
cmp word [esi + 0xd2], 2
jne 0x10b1d7a
xor ebx, ebx
cmp word [esi + 0xd4], bx
jne 0x10b1d7a
test byte [eax], 8
jne 0x10b1d7a
cmp dword [esi + 0x388], ebx
jne 0x10b1cf8
push edi
push 0x800
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x388], eax
jne 0x10b1cef
push edi
push ebx
jmp 0x10b1f2c
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 0x800
push dword [ebp - 0x94]
mov ebx, dword [esi + 0x388]
push edi
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
mov dword [ebp - 0x88], ebx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10b1d2e
mov eax, dword [ebp - 0x94]
test byte [eax + 0xc], 0x10
je 0x10b1f29
mov eax, dword [ebp - 0x94]
test byte [eax + 0xc], 0x10
je 0x10b1d92
push dword [esi + 0xf4]
call dword [sym.imp.msvcrt.dll_fflush]
push dword [esi + 0xf4]
call dword [sym.imp.msvcrt.dll_fclose]
and dword [esi + 0xf4], 0
add esi, 0x134
push esi
push dword [0x10ecab4]
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [0x10ecab0]
call fcn.010827f8
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ax, ax
pop ebx
call fcn.01075aef
leave
ret 8
mov ebx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
add ecx, 0xffffffdc
cmp ax, cx
mov dword [ebp - 0x98], ecx
jae 0x10b1de1
lea ebx, [eax + 0x200]
movzx eax, bx
push eax
push dword [esi + 0x388]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x10b1f29
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], bx
mov dword [esi + 0x388], eax
mov dword [ebp - 0x88], eax
mov ebx, eax
movzx eax, word [ebp - 0x98]
push dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
push eax
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x8c]
jne 0x10b1f29
inc word [ebp - 0x22]
lea ecx, [ebp - 0x26]
mov ecx, dword [ecx]
mov eax, 0x1011bd4
cmp ecx, dword [eax]
jne 0x10b1e3c
movzx eax, word [ebx + 0x1a]
lea ecx, [eax + ebx - 0x24]
lea eax, [ebp - 0x28]
push eax
mov ax, word [ebx + 0x18]
call fcn.010b1362
test ax, ax
jne 0x10b1f29
lea ecx, [ebp - 0x26]
mov ecx, dword [ecx]
mov eax, 0x1011bcc
cmp ecx, dword [eax]
jne 0x10b1e5d
movzx eax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esi + 0x3a0]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x90]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push edi
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call ebx
add esp, 0x10
cmp eax, edi
jne 0x10b1f29
lea ecx, [ebp - 0x26]
mov ecx, dword [ecx]
mov eax, 0x1011bd4
cmp ecx, dword [eax]
jne 0x10b1e96
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 2
jmp 0x10b1ec6
lea ecx, [ebp - 0x26]
mov ecx, dword [ecx]
mov eax, 0x1011b9c
cmp ecx, dword [eax]
jne 0x10b1eaf
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 5
jmp 0x10b1ec6
lea ecx, [ebp - 0x26]
mov ecx, dword [ecx]
mov eax, 0x1011bcc
cmp ecx, dword [eax]
jne 0x10b1ed9
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 3
push dword [ebp - 0x90]
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [esi + 0x150], eax
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
push edi
push dword [ebp - 0x88]
call ebx
add esp, 0x10
cmp eax, dword [ebp - 0x8c]
jne 0x10b1f29
mov ebx, dword [ebp - 0x94]
push ebx
push edi
lea eax, [ebp - 0x28]
push reloc.ADVAPI32.dll_CloseServiceHandle
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10b1f1a
test byte [ebx + 0xc], 0x10
je 0x10b1f29
test byte [ebx + 0xc], 0x10
je 0x10b1d8c
jmp 0x10b1d3a
push edi
push 0
push esi
call fcn.010af580
mov word [esi + 0xd4], di
jmp 0x10b1d7a