Function at 0x1000c2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100624ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
call fcn.1001cdb0
mov ebx, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
je 0x1000c439
call fcn.1001cdb0
mov dword [ebp - 0x24], eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1000c5c2
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x29
push str.MsiTableReader::ExtractBinaryColumn_to:__
call fcn.10011800
cmp dword [ebx + 0x14], 7
mov edx, ebx
jbe 0x1000c34e
mov edx, dword [ebx]
test edx, edx
je 0x1000c370
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c357
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.10011800
push 2
push 0x10093efc
lea ecx, [ebp - 0x14]
call fcn.10011800
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1000c5c2
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push 0
push 0x10093cf4
call fcn.10011800
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000c3de
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1000c3de
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1001cfd0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c40e
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000c439
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov dword [ebp - 0x30], 0x10094084
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xa
cmp dword [ebx + 0x14], 7
jbe 0x1000c456
mov ebx, dword [ebx]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, dword [ebp - 0x2c]
je 0x1000c48c
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1006e578]
lea ecx, [ebp - 0x30]
call esi
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp - 0x28]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
xor edi, edi
mov dword [ebp - 0x24], eax
push 0xc823
push 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
test ecx, ecx
je 0x1000c5bd
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
add eax, 0xc800
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
push 0xc800
push edi
push eax
lea esi, [eax + 0xc800]
call fcn.1004f1c0
add esp, 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc800
push eax
push dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x1000c53a
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
add edi, eax
test eax, eax
jne 0x1000c501
cmp dword [ebp - 0x24], edi
sete bl
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1000c586
mov eax, dword [ebp - 0x34]
mov edx, ecx
sub eax, ecx
cmp eax, 0x1000
jb 0x1000c566
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000c5bd
test ecx, ecx
je 0x1000c571
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x10094084
test ecx, ecx
je 0x1000c5a9
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10050fef
push 0x80004005
call fcn.10005390
int3