Function at 0x40be1c
Capabilities:
Initialize iwebbrowser2
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40df64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x54], 0
mov word [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
mov word [ebp - 0x6c], 0
xor ecx, ecx
mov dword [ebp - 0x6a], ecx
mov dword [ebp - 0x66], ecx
mov dword [ebp - 0x62], ecx
mov word [ebp - 0x5e], cx
mov word [ebp - 0x3c], 0
xor edx, edx
mov dword [ebp - 0x3a], edx
mov dword [ebp - 0x36], edx
mov dword [ebp - 0x32], edx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov word [ebp - 0x42], ax
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::AllocSysString
mov dword [ebp - 0x5c], eax
mov ecx, 0x4173d8
call sub.MFC42.DLL_CString::AllocSysString
mov dword [ebp - 0x70], eax
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
lea edx, [ebp - 0x54]
push edx
push 0x40f56c
push 4
push 0
push 0x40f54c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x54], 0
je 0x40c212
push 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x54]
push edx
call dword [ecx + 0xa4]
push 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x54]
push edx
call dword [ecx + 0xe8]
cmp dword [ebp - 0x5c], 0
je 0x40c1b9
mov word [ebp - 0x50], 8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x48], eax
mov word [ebp - 0x3c], 3
mov dword [ebp - 0x34], 0xe
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004047a8
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40c1b9
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x54]
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0040556a
add esp, 4
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x54]
push edx
call dword [ecx + 0x48]
test eax, eax
jl 0x40c1b9
lea eax, [ebp - 0x78]
push eax
push 0x40f48c
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x74]
push eax
call dword [edx]
test eax, eax
jl 0x40c1ad
lea ecx, [ebp - 0x7c]
call fcn.0040d610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.0040d650
push eax
call fcn.0040c250
push eax
lea ecx, [ebp - 0x98]
call fcn.0040c9c0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xac]
call fcn.0040d690
push eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x78]
push ecx
call dword [eax + 0xb8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.0040c9a0
lea ecx, [ebp - 0x7c]
call fcn.0040d690
test eax, eax
je 0x40c195
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x7c]
call fcn.0040d690
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xb0]
push edx
call dword [ecx + 0xf0]
mov eax, dword [ebp - 0x28]
push eax
call fcn.00401b4f
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x84]
call fcn.00401200
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
add eax, 0x32
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x94], 0
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x84]
call fcn.00401276
push 0x41719c
lea ecx, [ebp + 0xc]
call fcn.0040c7e0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x40c152
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.0040d6f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa0]
jmp 0x40c242
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
push 1
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x7c]
call fcn.0040d660
mov dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x78]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.0040d6f0
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x74]
push ecx
call dword [eax + 8]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x5c], 0
je 0x40c1e7
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x70], 0
je 0x40c1f7
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x54]
push eax
call dword [edx + 0x80]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x54]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret