Function at 0x10c9e2a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10de03c]
and dword [ebp - 0x34], 0
and dword [ebp - 0x44], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x44]
mov edi, dword [ebp + 0x10]
push dword [esi + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 4]
xor ebx, ebx
mov bx, word [eax + reloc.ADVAPI32.dll_RegDeleteValueW]
push ebx
call fcn.01097324
test ax, ax
je 0x10c9e86
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc
call fcn.01075adf
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.010977fd
cmp ax, 1
je 0x10c9e81
mov cx, word [ebp - 0x20]
xor ebx, ebx
cmp cx, bx
je 0x10c9ead
cmp cx, 5
je 0x10c9ead
mov ax, 0xfdf8
jmp 0x10c9e72
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x24]
cmp edx, eax
jb 0x10c9ebc
mov dword [esi + 0x48], eax
jmp 0x10c9ebf
mov dword [esi + 0x48], edx
mov dword [esi + 0x50], ebx
mov word [esi + 0x58], cx
cmp dword [edi + 0x23f8], ebx
jne 0x10c9eed
lea eax, [edi + 4]
push eax
push 0x1012eb4
push 0x1012ea0
push edi
call fcn.010c8ed3
cmp eax, ebx
mov dword [edi], eax
jne 0x10c9f02
jmp 0x10ca0e0
push ebx
push ebx
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10ca0e0
cmp dword [esi + 0x48], 0xf
push LoadLibraryW
push esi
jae 0x10c9f27
push dword [ebp - 0x40]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9fc1
mov ebx, dword [edi + 0x2044]
jmp 0x10c9f32
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010ac48d
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 0x3c], LoadLibraryW
mov dword [ebp - 0x48], eax
xor eax, eax
mov ax, word [ebx + 0xa]
mov dword [ebp - 0x4c], eax
mov al, byte [ebx + 0xe]
mov byte [ebp - 0x35], al
mov byte [ebp - 0x2d], 0
cmp dword [esi + 0x48], 0xc
push 0xc
push esi
jae 0x10c9f75
push dword [ebp - 0x40]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9fc1
mov ebx, dword [edi + 0x2044]
jmp 0x10c9f80
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010ac48d
movzx eax, byte [ebp - 0x2d]
mov ecx, dword [ebx + 2]
add dword [ebp - 0x3c], 0xc
mov dword [edi + eax*8 + 0x2084], ecx
movzx eax, byte [ebp - 0x2d]
mov ecx, dword [ebx + 6]
mov dword [edi + eax*8 + 0x2088], ecx
inc byte [ebp - 0x2d]
mov bx, word [ebx + 0xa]
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10c9fd5
push dword [ebp - 0x40]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x34], eax
je 0x10c9fda
lea eax, [edi + 4]
push eax
push edi
push edi
call fcn.010c8e79
mov ax, word [ebp - 0x34]
jmp 0x10c9e72
call fcn.010ac48d
add dword [ebp - 0x3c], ebx
cmp dword [esi + 0x48], 2
push 2
push esi
jae 0x10ca001
push dword [ebp - 0x40]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9fc1
mov eax, dword [edi + 0x2044]
mov bx, word [eax]
jmp 0x10ca010
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
mov bx, word [eax + ecx]
call fcn.010ac48d
add dword [ebp - 0x3c], 2
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10ca030
push dword [ebp - 0x40]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9fc1
jmp 0x10ca035
call fcn.010ac48d
add dword [ebp - 0x3c], ebx
mov ax, word [ebp - 0x3c]
cmp ax, word [ebp - 0x48]
jb 0x10c9f54
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x23f8]
jle 0x10ca0c3
push dword [edi]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x2d]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ca0e0
push dword [edi]
push eax
lea eax, [ebp - 0x48]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ca0e0
push dword [edi]
push eax
lea eax, [ebp - 0x4c]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ca0e0
push dword [edi]
push eax
push eax
lea eax, [ebp - 0x35]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ca0e0
push dword [edi]
movzx eax, byte [ebp - 0x2d]
push eax
lea eax, [edi + 0x2084]
push 8
push eax
call ebx
movzx ecx, byte [ebp - 0x2d]
add esp, 0x10
cmp ecx, eax
jne 0x10ca0e0
test byte [ebp - 0x35], 0x30
je 0x10c9f02
push 0
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10ca0ec
mov dword [ebp - 0x34], 0xfffffdf3
jmp 0x10c9fc1
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x23f8], eax
jmp 0x10c9fcc