Function at 0x1000bcc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a84d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x24], edi
call fcn.1001af00
mov esi, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
je 0x1000bdf9
call fcn.1001af00
mov dword [ebp - 0x20], eax
call fcn.10009f40
test eax, eax
je 0x1000bf7d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
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.10010b90
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x1000bd43
mov edx, dword [esi]
test edx, edx
je 0x1000bd6a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bd50
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.10010b90
push 2
push 0x100709a4
lea ecx, [ebp - 0x14]
call fcn.10010b90
call fcn.10009f40
test eax, eax
je 0x1000bf7d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push 0
push 0x100707ac
call fcn.10010b90
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
sub esp, 8
call fcn.1001b0f0
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 0x1000bdda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x1000bdf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], 0x10070ab0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x1000be16
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, dword [ebp - 0x28]
je 0x1000be42
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call dword [edx + 4]
mov dword [ebp - 0x28], esi
push ebx
push edi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
xor edi, edi
mov dword [ebp - 0x1c], eax
push 0xc823
push 0x40
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
test ecx, ecx
je 0x1000bf78
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
add eax, 0xc800
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x38]
push 0xc800
push edi
push eax
lea esi, [eax + 0xc800]
call fcn.10046750
add esp, 0xc
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xc
mov esi, dword [sym.imp.msi.dll_MsiRecordSetStringA]
nop dword [eax + eax]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc800
push eax
push dword [ebp - 0x38]
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
jne 0x1000bef5
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
add edi, eax
test eax, eax
jne 0x1000bec0
cmp dword [ebp - 0x1c], edi
sete bl
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1000bf41
mov eax, dword [ebp - 0x30]
mov edx, ecx
sub eax, ecx
cmp eax, 0x1000
jb 0x1000bf21
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000bf78
test ecx, ecx
je 0x1000bf2c
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x10070ab0
test ecx, ecx
je 0x1000bf64
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 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.1004872f
push 0x80004005
call fcn.10005390
int3