Function at 0x1001ca60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10184260
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push ebp
mov ebp, ecx
cmp dword [esp + 0x34], eax
je 0x1001ce24
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
lea eax, [ebx + 0x148]
push edi
mov ecx, 4
lea edi, [esp + 0x20]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x1001cac0
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ecx, dword [ebp + 0x628]
xor eax, eax
test ecx, ecx
jle 0x1001cb5e
mov edx, dword [ebp + 0x624]
add edx, 0x148
lea edi, [ebx + 0x148]
mov ecx, 4
mov esi, edx
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x1001cb06
mov ecx, dword [ebp + 0x628]
mov ebx, dword [esp + 0x44]
inc eax
add edx, 0x160
cmp eax, ecx
jl 0x1001cadc
jmp 0x1001cb5e
mov ecx, dword [ebp + 0x628]
mov edx, dword [ebp + 0x624]
lea esi, [eax + eax*4]
sub ecx, eax
dec ecx
lea esi, [eax + esi*2]
shl esi, 5
add esi, edx
test ecx, ecx
je 0x1001cb45
lea edi, [ecx + ecx*4]
lea ecx, [ecx + edi*2]
shl ecx, 5
push ecx
lea ecx, [eax + eax*4 + 5]
lea eax, [eax + ecx*2 + 1]
shl eax, 5
add eax, edx
push eax
push esi
call fcn.100ca970
add esp, 0xc
mov eax, dword [ebp + 0x628]
mov ebx, dword [esp + 0x44]
dec eax
mov dword [esp + 0x14], 1
mov dword [ebp + 0x628], eax
lea ecx, [esp + 0x1c]
call fcn.100c2a00
lea eax, [ebx + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x40], 0
call fcn.10124d90
add esp, 8
push eax
lea edx, [ebp + 0x410]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x44], 1
call fcn.10173580
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.10173267
mov ecx, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [0x10274670]
test eax, eax
je 0x1001cc26
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.100e29f0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebx + 0x144]
push ecx
mov ecx, dword [ebx + 0x140]
push esi
push edx
push eax
lea edx, [ebx + 0xa0]
push ecx
push edx
push ebx
push str.CIMMessageFile::AddInfoByGUID___s____s____d____d____s____x____d_
push str.CIMMessageFile
push 0xffffffffffffffff
push 0x10273ddc
mov byte [esp + 0x64], 4
call fcn.10119f10
add esp, 0x2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.100e3260
cmp esi, 0xffffffff
je 0x1001cc51
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x40]
push 0
push eax
push edi
call fcn.100c9da4
add esp, 4
shl eax, 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x628]
mov eax, dword [ebp + 0x624]
mov esi, edx
xor edi, edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 1]
cmp ebx, edi
jne 0x1001cc90
cmp eax, edi
je 0x1001cc7f
push eax
call fcn.10173959
add esp, 4
mov dword [ebp + 0x624], edi
mov dword [ebp + 0x62c], edi
mov dword [ebp + 0x628], edi
jmp 0x1001cde6
cmp eax, edi
jne 0x1001ccd3
lea ecx, [ebx + ebx*4]
lea edi, [ebx + ecx*2]
shl edi, 5
push edi
call fcn.10173930
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x624], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x62c], ebx
mov dword [ebp + 0x628], ebx
jmp 0x1001cde6
mov ecx, dword [ebp + 0x62c]
cmp ebx, ecx
jg 0x1001cd14
cmp ebx, edx
jle 0x1001cd09
lea edi, [edx + edx*4]
mov ecx, ebx
sub ecx, edx
lea edi, [edx + edi*2]
shl edi, 5
add edi, eax
lea eax, [ecx + ecx*4]
lea ecx, [ecx + eax*2]
xor eax, eax
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x628], ebx
jmp 0x1001cde6
mov eax, dword [ebp + 0x630]
cmp eax, edi
jne 0x1001cd41
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x1001cd35
mov eax, 4
jmp 0x1001cd41
cmp eax, 0x400
jle 0x1001cd41
mov eax, 0x400
add eax, ecx
cmp ebx, eax
jge 0x1001cd4d
mov dword [esp + 0x40], eax
jmp 0x1001cd53
mov dword [esp + 0x40], ebx
mov eax, ebx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
push edx
call fcn.10173930
mov ecx, dword [ebp + 0x628]
mov esi, dword [ebp + 0x624]
mov edi, eax
mov dword [esp + 0x1c], eax
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x628]
mov ecx, ebx
sub ecx, edx
lea esi, [edx + edx*4]
lea edi, [edx + esi*2]
shl edi, 5
add edi, eax
lea eax, [ecx + ecx*4]
lea ecx, [ecx + eax*2]
xor eax, eax
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x624]
push eax
call fcn.10173959
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebp + 0x624], eax
mov dword [ebp + 0x628], ebx
mov dword [ebp + 0x62c], ecx
mov eax, dword [ebp + 0x624]
lea edx, [esi + esi*4]
mov ecx, 0x58
lea edi, [esi + edx*2]
mov esi, dword [esp + 0x44]
shl edi, 5
add edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.10173267
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.100c2a20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 8