Function at 0x4049c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40fe3c
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40ff3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov ebx, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1d3
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ret__08lx_n
call fcn.00403210
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 4
mov ebx, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1d7
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ret__08lx_n
call fcn.00403210
mov eax, str.MIME_Version:_1.0_r_nContent_Type:_multipart_mixed__r_n_boundary_____________1.5.0.6___r_n_stuff_du_nno___r_n_morestuff_some_thing___r_nfoo:_bar_r_nFrom:_Huw_Davies__huw_codeweavers.com__r_nFrom:_Me__xxx_codeweavers.com__r_nTo:_wine_patches__wine_patches_winehq.org__r_nCc:_Huw_Davies__huw_codeweavers.com___r_n_____Fred_Bloggs_____fred_bloggs.com__r_nfoo:_baz_r_nbar:_fum_r_n_r_nThis_is_a_multi_part_message_in_MIME_format._r_n______________1.5.0.6_r_nContent_Type:_text_plain__formatfixed__charsetUTF_8_r_nContent_Transfer_Encoding:_8bit_r_n_r_nStuff_r_n______________1.5.0.6_r_nContent_Type:_text_plain__charset_us_ascii__r_nContent_Transfer_Encoding:_7bit_r_n_r_nMore_stuff_r_n______________1.5.0.6___r_n
call fcn.00403b40
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x14]
sub esp, 8
mov ebx, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1db
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ret__08lx_n
call fcn.00403210
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax], 0x40f860
mov esi, eax
sub esp, 0xc
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x410e6c
mov dword [esp + 0xc], str.plain
mov dword [esp + 8], str.text
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x94]
sub esp, 0x18
mov ebx, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1e1
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ret__08lx_n
call fcn.00403210
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 8], str.plain
mov dword [esp + 4], str.text
mov dword [esp], eax
call dword [edx + 0x58]
mov edi, dword [0x433090]
sub esp, 0xc
mov ebx, eax
call fcn.00409d20
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x404be5
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1e4
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.ret__08lx_n
call fcn.00403210
call fcn.00409d20
shr dword [eax + 0x10], 1
call fcn.00409d20
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x404bb0
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, 0x1e6
lea ebx, [ebp - 0x18]
call fcn.00403230
mov eax, dword [ebp - 0x10]
mov dword [0x43304c], 1
mov dword [0x43303c], 1
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x90]
sub esp, 0xc
mov edi, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1eb
mov dword [esp + 4], str.expected_Stream_Stat_n
mov eax, dword [0x433048]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433048], 0
mov dword [0x43304c], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1ec
mov dword [esp + 4], str.expected_Stream_Seek_END_n
mov eax, dword [0x433038]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433038], 0
mov dword [0x43303c], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1ed
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.GetData_failed__08lx_n
call fcn.00403210
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1ee
xor eax, eax
mov dword [esp + 4], str.unexpected_stream_n
cmp dword [ebp - 0x18], esi
setne al
mov dword [esp], eax
call fcn.00403210
mov ecx, 0x40ebb3
mov eax, 0x1f2
mov dword [0x433044], 1
mov dword [0x433054], 1
mov dword [esp], 3
mov edx, dword [ebp - 0x18]
call fcn.00404150
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1f3
mov dword [esp + 4], str.expected_Stream_Seek_n
mov eax, dword [0x433040]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433040], 0
mov dword [0x433044], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1f4
mov dword [esp + 4], str.expected_Stream_Read_n
mov eax, dword [0x433050]
mov dword [esp], eax
call fcn.00403210
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [0x433050], 0
mov dword [0x433054], 0
mov dword [0x43304c], 1
mov edx, dword [eax]
mov dword [0x43303c], 1
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x90]
sub esp, 0xc
mov edi, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1f9
mov dword [esp + 4], str.expected_Stream_Stat_n
mov eax, dword [0x433048]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433048], 0
mov dword [0x43304c], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1fa
mov dword [esp + 4], str.expected_Stream_Seek_END_n
mov eax, dword [0x433038]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433038], 0
mov dword [0x43303c], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1fb
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.GetData_failed__08lx_n
call fcn.00403210
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x1fc
mov dword [esp + 4], str.unexpected_stream_n
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.00403210
mov ecx, 0x40ebe3
mov eax, 0x200
mov dword [0x433044], 1
mov dword [0x433054], 1
mov dword [esp], 2
mov edx, dword [ebp - 0x14]
call fcn.00404150
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x201
mov dword [esp + 4], str.expected_Stream_Seek_n
mov eax, dword [0x433040]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433040], 0
mov dword [0x433044], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x202
mov dword [esp + 4], str.expected_Stream_Read_n
mov eax, dword [0x433050]
mov dword [esp], eax
call fcn.00403210
mov ecx, 0x40ebe6
mov eax, 0x207
mov dword [0x433050], 0
mov dword [0x43300c], 3
mov dword [0x433044], 1
mov dword [0x433054], 1
mov dword [esp], 3
mov edx, dword [ebp - 0x18]
call fcn.00404150
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x208
mov dword [esp + 4], str.expected_Stream_Seek_n
mov eax, dword [0x433040]
mov dword [esp], eax
call fcn.00403210
mov dword [0x433040], 0
mov dword [0x433044], 0
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x209
mov dword [esp + 4], str.expected_Stream_Read_n
mov eax, dword [0x433050]
mov dword [esp], eax
call fcn.00403210
mov eax, dword [ebp - 0x18]
mov dword [0x433050], 0
mov dword [0x433054], 0
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [esi]
sub esp, 4
mov dword [esp], esi
call dword [eax + 8]
mov eax, str.__t_r_nYWJj_ZGVmZw__t
sub esp, 4
call fcn.00403b40
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x410e6c
mov dword [esp + 0xc], str.plain
mov dword [esp + 8], str.text
mov dword [esp + 4], 1
call dword [ecx + 0x94]
mov esi, eax
mov eax, dword [ebp - 0x18]
sub esp, 0x18
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x212
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.SetData_failed:__08lx_n
call fcn.00403210
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov eax, 0x214
call fcn.00403230
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x90]
sub esp, 0xc
mov esi, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x217
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.GetData_failed__08lx_n
call fcn.00403210
mov ecx, 0x40ec1b
mov eax, 0x219
mov dword [esp], 3
mov edx, dword [ebp - 0x18]
call fcn.00404150
mov ecx, str.defg
mov eax, 0x21a
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x18]
call fcn.00404150
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x10]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0x90]
sub esp, 0xc
mov esi, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x21f
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.GetData_failed__08lx_n
call fcn.00403210
mov ecx, 0x40ec24
mov eax, 0x221
mov dword [esp], 3
mov edx, dword [ebp - 0x18]
call fcn.00404150
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, str._3d3D_one___t_r_ntw__o_nx3_n34_r_n5
sub esp, 4
call fcn.00403b40
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x410e6c
mov dword [esp + 0xc], str.plain
mov dword [esp + 8], str.text
mov dword [esp + 4], 3
call dword [ecx + 0x94]
mov esi, eax
mov eax, dword [ebp - 0x18]
sub esp, 0x18
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x227
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.SetData_failed:__08lx_n
call fcn.00403210
mov edx, dword [ebp - 0x10]
mov ecx, 3
mov eax, 0x229
call fcn.00403230
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x90]
sub esp, 0xc
mov ebx, eax
call fcn.00409d20
mov dword [eax], 0x40e52b
mov dword [eax + 4], 0x22c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.GetData_failed__08lx_n
call fcn.00403210
mov ecx, str.__one___ttwo3_n4_r_n5
mov eax, 0x22e
mov dword [esp], 0xffffffff
mov edx, dword [ebp - 0x18]
call fcn.00404150
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x10]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret