Function at 0x1000cde0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f78d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
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.100218f0
mov ebx, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
je 0x1000cf59
call fcn.100218f0
mov dword [ebp - 0x24], eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1000d0e2
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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.10014a40
cmp dword [ebx + 0x14], 7
mov edx, ebx
jbe 0x1000ce6e
mov edx, dword [ebx]
test edx, edx
je 0x1000ce90
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ce77
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.10014a40
push 2
push 0x100a4384
lea ecx, [ebp - 0x14]
call fcn.10014a40
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1000d0e2
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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 0x100a416c
call fcn.10014a40
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000cefe
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1000cefe
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.10021b10
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 0x1000cf2e
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
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 0x1000cf59
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov dword [ebp - 0x30], 0x100a46cc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xa
cmp dword [ebx + 0x14], 7
jbe 0x1000cf76
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 0x1000cfac
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1007d584]
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 0x1000d0dd
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.10055bd0
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 0x1000d05a
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 0x1000d021
cmp dword [ebp - 0x24], edi
sete bl
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1000d0a6
mov eax, dword [ebp - 0x34]
mov edx, ecx
sub eax, ecx
cmp eax, 0x1000
jb 0x1000d086
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000d0dd
test ecx, ecx
je 0x1000d091
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], 0x100a46cc
test ecx, ecx
je 0x1000d0c9
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.100590cf
push 0x80004005
call fcn.10005390
int3