Function at 0x10c9c9c
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.01097196
test ax, ax
je 0x10c9cf8
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc
call fcn.01075a13
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.0109766f
cmp ax, 1
je 0x10c9cf3
mov cx, word [ebp - 0x20]
xor ebx, ebx
cmp cx, bx
je 0x10c9d1f
cmp cx, 5
je 0x10c9d1f
mov ax, 0xfdf8
jmp 0x10c9ce4
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x24]
cmp edx, eax
jb 0x10c9d2e
mov dword [esi + 0x48], eax
jmp 0x10c9d31
mov dword [esi + 0x48], edx
mov dword [esi + 0x50], ebx
mov word [esi + 0x58], cx
cmp dword [edi + 0x23f8], ebx
jne 0x10c9d5f
lea eax, [edi + 4]
push eax
push 0x1012e9c
push 0x1012e88
push edi
call fcn.010c8d45
cmp eax, ebx
mov dword [edi], eax
jne 0x10c9d74
jmp 0x10c9f52
push ebx
push ebx
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10c9f52
cmp dword [esi + 0x48], 0xf
push LoadLibraryW
push esi
jae 0x10c9d99
push dword [ebp - 0x40]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9e33
mov ebx, dword [edi + 0x2044]
jmp 0x10c9da4
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010ac2d2
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 0x10c9de7
push dword [ebp - 0x40]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9e33
mov ebx, dword [edi + 0x2044]
jmp 0x10c9df2
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.010ac2d2
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 0x10c9e47
push dword [ebp - 0x40]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x34], eax
je 0x10c9e4c
lea eax, [edi + 4]
push eax
push edi
push edi
call fcn.010c8ceb
mov ax, word [ebp - 0x34]
jmp 0x10c9ce4
call fcn.010ac2d2
add dword [ebp - 0x3c], ebx
cmp dword [esi + 0x48], 2
push 2
push esi
jae 0x10c9e73
push dword [ebp - 0x40]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9e33
mov eax, dword [edi + 0x2044]
mov bx, word [eax]
jmp 0x10c9e82
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
mov bx, word [eax + ecx]
call fcn.010ac2d2
add dword [ebp - 0x3c], 2
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10c9ea2
push dword [ebp - 0x40]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x34], eax
jne 0x10c9e33
jmp 0x10c9ea7
call fcn.010ac2d2
add dword [ebp - 0x3c], ebx
mov ax, word [ebp - 0x3c]
cmp ax, word [ebp - 0x48]
jb 0x10c9dc6
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x23f8]
jle 0x10c9f35
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 0x10c9f52
push dword [edi]
push eax
lea eax, [ebp - 0x48]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10c9f52
push dword [edi]
push eax
lea eax, [ebp - 0x4c]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10c9f52
push dword [edi]
push eax
push eax
lea eax, [ebp - 0x35]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10c9f52
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 0x10c9f52
test byte [ebp - 0x35], 0x30
je 0x10c9d74
push 0
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10c9f5e
mov dword [ebp - 0x34], 0xfffffdf3
jmp 0x10c9e33
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x23f8], eax
jmp 0x10c9e3e