Function at 0x440188
Capabilities:
Write file on windows

Disassembly:
push 0x78
mov eax, 0x4e079f
call fcn.004b814b
mov eax, dword [ebp + 8]
and dword [ebp - 0x50], 0
xor ebx, ebx
inc ebx
mov esi, ecx
mov dword [ebp - 0x4c], esi
mov edi, edx
mov dword [ebp - 0x58], eax
test byte [0x52c1e0], bl
jne 0x4401f7
or dword [0x52c1e0], ebx
mov dword [ebp - 4], ebx
push str.HtmlHostNavError
lea ecx, [ebp - 0x7c]
call fcn.00404357
mov byte [ebp - 4], 2
mov eax, dword [edi]
lea ecx, [ebp - 0x7c]
push ecx
push 0x52c1c4
mov ecx, edi
call dword [eax + 0x28]
mov byte [ebp - 4], bl
push 0
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004035da
push 0x4e95c3
call fcn.004b3ae5
pop ecx
mov byte [ebp - 4], 0
cmp dword [0x52c1d8], 0
jne 0x440215
mov ecx, esi
call fcn.00409e84
and dword [ebp - 4], 0
mov dword [ebp - 0x50], ebx
mov eax, esi
jmp 0x440412
push ebx
call sub.msi.dll_MsiDatabaseExportA
mov esi, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 4], 3
test esi, esi
jne 0x440242
mov ecx, dword [ebp - 0x4c]
call fcn.00409e84
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 0
jmp 0x44040f
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x18], 8
jb 0x440250
mov eax, dword [eax + 4]
jmp 0x440253
add eax, 4
push eax
push ebx
push esi
call sub.msi.dll_MsiReinstallFeatureW
test eax, eax
je 0x440274
mov ecx, dword [ebp - 0x4c]
call fcn.00409e84
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 0
push esi
jmp 0x44040a
cmp dword [0x52c1dc], 8
mov eax, dword [0x52c1c8]
jae 0x440287
mov eax, 0x52c1c8
push eax
push 0
push esi
call sub.msi.dll_MsiReinstallFeatureW
test eax, eax
jne 0x44025f
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call dword [eax + 0x48]
mov byte [ebp - 4], 4
test byte [0x52c1e0], 2
jne 0x4402d1
or dword [0x52c1e0], 2
mov byte [ebp - 4], 5
push 0x52c194
call fcn.00459030
push 0x4e95b6
call fcn.004b3ae5
pop ecx
mov byte [ebp - 4], 4
push 0x4f415c
lea ecx, [ebp - 0x7c]
call fcn.00404357
mov byte [ebp - 4], 6
push ebx
lea ecx, [ebp - 0x7c]
lea edi, [ebp - 0x2c]
call fcn.0045ad90
pop ecx
mov byte [ebp - 4], 8
xor esi, esi
push esi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004035da
push str.html
lea ecx, [ebp - 0x7c]
call fcn.00404357
mov byte [ebp - 4], 9
lea edi, [ebp - 0x7c]
lea eax, [ebp - 0x2c]
call fcn.0045a880
mov byte [ebp - 4], 8
push esi
push ebx
mov ecx, edi
call fcn.004035da
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x440334
lea eax, [ebp - 0x28]
push esi
push 0x80
push 2
push esi
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor edi, edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 0xa
cmp esi, 0xffffffff
jne 0x440397
mov ecx, dword [ebp - 0x4c]
call fcn.00409e84
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
call fcn.0040367e
mov byte [ebp - 4], 3
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004035da
mov byte [ebp - 4], 0
jmp 0x440407
lea eax, [ebp - 0x2c]
push eax
mov ebx, 0x52c194
call fcn.00459500
xor edi, edi
lea eax, [ebp - 0x48]
call fcn.00440425
mov ecx, dword [ebp - 0x34]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x60]
push edx
add ecx, ecx
push ecx
push eax
push esi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409e5e
inc edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 8
cmp esi, ebx
je 0x4403e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
call fcn.0040367e
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.004035da
mov byte [ebp - 4], bl
push dword [ebp - 0x54]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [ebp - 0x4c]
call fcn.004b81ce
ret