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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4cc
mov dword [ebp - 0x45c], ecx
movzx ecx, word [edx + 0x2c]
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x4a8], edx
mov dword [ebp - 0x478], 0x680072
mov dword [ebp - 0x474], 0x73
mov dword [ebp - 0x454], 5
mov dword [ebp - 0x458], 0xffff0002
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x494], 0
test byte [edx + 0x36], 0x40
je 0x4092f3
mov dword [ebp - 0x494], 7
add ecx, 7
mov dword [ebp - 0x49c], ecx
mov esi, dword [ebp - 0x494]
cmp dword [ebp - 0x49c], esi
jle 0x409508
lea esi, [esi]
mov ebx, dword [ebp - 0x490]
lea ecx, [ebp - 0x484]
mov eax, dword [ebx]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x494]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x4094ed
lea edx, [ebp - 0x47c]
mov eax, dword [ebx]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x480]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x484]
mov edx, dword [edx]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x30]
sub esp, 0x18
test eax, eax
js 0x4094ed
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
call dbg.InitializeTLData
mov esi, eax
mov eax, dword [ebp - 0x480]
mov dword [esp], eax
call sym._SysStringLen_4
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x480]
sub esp, 4
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x484]
cmp dword [eax], 0x5fffffff
jle 0x409510
mov ecx, dword [ebp - 0x4a8]
test byte [ecx + 0x36], 0x40
jne 0x409510
mov edi, dword [ebp - 0x490]
mov ecx, dword [eax + 0x20]
lea edx, [ebp - 0x218]
mov dword [esp + 4], edi
movzx eax, word [eax + 0x24]
mov word [esp], ax
lea eax, [ebp - 0x418]
call sym._CreateTypeInfo.isra.0
mov eax, dword [ebp - 0x484]
mov eax, dword [eax + 0x10]
cmp eax, 4
je 0x409ca1
cmp eax, 8
je 0x409c77
cmp eax, 2
jne 0x409c4d
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propget
jmp 0x409c09
mov edx, 0x40f546
mov eax, esi
call dbg.AddToTLDataStrW
lea eax, [ebp - 0x45c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1132
mov eax, dword [0x416684]
mov dword [esp], eax
call sym._SendMessageW_16
mov esi, dword [ebp - 0x498]
sub esp, 0x10
mov dword [esp + 8], esi
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_HeapFree]
mov eax, dword [ebp - 0x480]
sub esp, 0xc
mov dword [esp], eax
call sym._SysFreeString_4
mov eax, dword [ebp - 0x47c]
sub esp, 4
mov dword [esp], eax
call sym._SysFreeString_4
mov esi, dword [ebp - 0x490]
mov edx, dword [ebp - 0x484]
sub esp, 4
mov eax, dword [esi]
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [eax + 0x50]
sub esp, 8
add dword [ebp - 0x494], 1
mov esi, dword [ebp - 0x49c]
mov eax, dword [ebp - 0x494]
cmp eax, esi
jne 0x409308
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x40f440
mov eax, esi
lea edi, [ebp - 0x418]
call dbg.AddToTLDataStrW
mov edx, 0x40f72c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov eax, dword [eax]
mov dword [esp + 4], str.0x_.8lx
mov dword [esp + 8], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._wsprintfW
lea edx, [ebp - 0x418]
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f448
mov eax, esi
call dbg.AddToTLDataStrW
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edx, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x484]
mov edi, dword [ebp - 0x490]
mov ecx, dword [eax + 0x20]
mov dword [esp + 4], edi
movzx eax, word [eax + 0x24]
mov word [esp], ax
lea eax, [ebp - 0x418]
call sym._CreateTypeInfo.isra.0
mov eax, dword [ebp - 0x484]
mov eax, dword [eax + 0x10]
cmp eax, 4
je 0x409c18
cmp eax, 8
je 0x409bf8
cmp eax, 2
je 0x409c90
nop
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._SysStringLen_4
sub esp, 4
test eax, eax
je 0x409622
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.helpstring
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f468
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, dword [ebp - 0x47c]
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f46e
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f452
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x4a8]
test byte [eax + 0x37], 1
je 0x409718
mov edx, str.HRESULT
mov eax, esi
call dbg.AddToTLDataStrW
lea eax, [ebp - 0x418]
mov dword [esp + 4], str.void
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x409732
mov edx, dword [ebp - 0x484]
movzx eax, word [edx + 0x18]
add eax, 1
mov word [edx + 0x18], ax
cwde
mov dword [esp + 4], 0
lea eax, [eax*4 + 4]
mov dword [esp + 8], eax
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x484]
mov dword [ebp - 0x498], eax
mov edi, eax
mov eax, dword [ebp - 0x490]
sub esp, 0xc
mov ecx, dword [eax]
lea eax, [ebp - 0x488]
mov dword [esp + 0x10], eax
movsx eax, word [edx + 0x18]
mov dword [esp + 8], edi
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x490]
mov dword [esp], eax
call dword [ecx + 0x1c]
sub esp, 0x14
test eax, eax
jns 0x409748
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4094ed
lea edx, [ebp - 0x418]
mov eax, esi
call dbg.AddToTLDataStrW
lea edx, [ebp - 0x218]
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
movzx eax, word [eax + 0x18]
jmp 0x40967d
mov eax, dword [ebp - 0x498]
mov eax, dword [eax]
mov dword [esp], eax
call sym._SysFreeString_4
mov eax, esi
mov edx, 0x40f45e
sub esp, 4
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
cmp dword [eax], 0x5fffffff
jg 0x409c30
mov edx, dword [ebp - 0x480]
test edx, edx
je 0x40978a
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, dword [ebp - 0x484]
mov dword [ebp - 0x48c], 0
cmp word [edx + 0x18], 0
jg 0x409913
jmp 0x409450
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f6cc
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov edx, dword [eax + 8]
add edx, ebx
movzx eax, word [edx + 0xc]
test al, 4
jne 0x409ac8
test al, 8
jne 0x409ab0
test al, 0x10
jne 0x409a70
test al, 0x40
je 0x409a9f
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, esi
mov edx, str.hascustdata
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax + 8]
add ecx, ebx
test byte [ecx + 0xc], 0x20
jne 0x409b88
mov edx, 0x40f556
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, dword [ebp - 0x484]
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x490]
add ebx, dword [edx + 8]
lea edx, [ebp - 0x218]
mov ecx, dword [ebx]
mov dword [esp + 4], eax
movzx eax, word [ebx + 4]
mov word [esp], ax
lea eax, [ebp - 0x418]
call sym._CreateTypeInfo.isra.0
lea edx, [ebp - 0x418]
mov eax, esi
call dbg.AddToTLDataStrW
lea edx, [ebp - 0x218]
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f45e
mov eax, esi
call dbg.AddToTLDataStrW
add dword [ebp - 0x48c], 1
mov edi, dword [ebp - 0x48c]
cmp edi, dword [ebp - 0x488]
jae 0x409b08
mov ebx, dword [ebp - 0x498]
mov edx, dword [ebx + edi*4]
test edx, edx
je 0x4098eb
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebx + edi*4]
mov dword [esp], eax
call sym._SysFreeString_4
sub esp, 4
mov eax, dword [ebp - 0x484]
movsx eax, word [eax + 0x18]
cmp dword [ebp - 0x48c], eax
jge 0x409450
mov edx, 0x40f55c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, dword [ebp - 0x484]
cmp word [edx + 0x18], 1
jne 0x409b20
mov ebx, dword [ebp - 0x48c]
mov ecx, dword [edx + 8]
shl ebx, 4
add ecx, ebx
movzx eax, word [ecx + 0xc]
test al, 1
jne 0x409a28
test al, 2
jne 0x4097c0
test al, 4
jne 0x409b70
test al, 8
je 0x409bd8
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.retval
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov edx, dword [eax + 8]
add edx, ebx
movzx eax, word [edx + 0xc]
test al, 0x10
jne 0x409a70
test al, 0x40
jne 0x409807
test al, 0x20
je 0x409834
mov edi, dword [edx + 8]
lea eax, [edi + 8]
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x4a4], eax
mov dword [esp], eax
call sym._VariantInit_4
sub esp, 4
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.defaultvalue
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, esi
call dbg.AddToTLDataStrW
cmp word [edi + 8], 8
je 0x409b90
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x4a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4a4]
mov dword [esp], eax
call sym._VariantChangeType_16
sub esp, 0x10
test eax, eax
je 0x409bc0
mov edx, 0x40f448
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409834
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, esi
mov edx, 0x40f6d4
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax + 8]
add ecx, ebx
movzx eax, word [ecx + 0xc]
test al, 2
jne 0x409b58
test al, 4
jne 0x409ac8
test al, 8
jne 0x409ab0
test al, 0x10
je 0x409cb2
lea esi, [esi]
nop
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.optional
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov edx, dword [eax + 8]
add edx, ebx
movzx eax, word [edx + 0xc]
test al, 0x40
jne 0x409807
test al, 0x20
je 0x409834
jmp 0x40998f
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x40995c
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f6c4
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov edx, dword [eax + 8]
add edx, ebx
movzx eax, word [edx + 0xc]
test al, 8
jne 0x409ab0
test al, 0x10
jne 0x409a70
test al, 0x40
je 0x409a9f
jmp 0x409807
lea edx, [ebp - 0x478]
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4098eb
mov edx, 0x40f54e
mov eax, esi
mov ebx, 4
call dbg.AddToTLDataStrW
lea esi, [esi]
mov edx, 0x40f45e
mov eax, esi
call dbg.AddToTLDataStrW
sub ebx, 1
jne 0x409b38
mov edx, dword [ebp - 0x484]
jmp 0x40991e
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4097cc
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409ad4
mov edi, dword [ecx + 8]
jmp 0x409992
mov eax, esi
mov edx, 0x40f552
call dbg.AddToTLDataStrW
mov edx, dword [edi + 0x10]
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f552
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409a14
mov edx, dword [ebp - 0x468]
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409a14
test al, 0x10
je 0x409d0c
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409a7c
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propputref
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4095d0
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propput
jmp 0x409c09
mov eax, esi
mov edx, str._stdcall
call dbg.AddToTLDataStrW
mov edx, 0x40f45e
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409779
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._SysStringLen_4
sub esp, 4
test eax, eax
je 0x40962e
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4095f1
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409c04
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x40943c
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409c24
test al, 0x40
jne 0x409807
test al, 0x20
je 0x409834
xor edx, edx
mov dword [ebp - 0x4ac], edx
mov edi, dword [ecx + 8]
lea eax, [edi + 8]
mov dword [ebp - 0x4a0], eax
lea eax, [ebp - 0x470]
mov dword [ebp - 0x4a4], eax
mov dword [esp], eax
call sym._VariantInit_4
mov eax, dword [ebp - 0x4ac]
sub esp, 4
test eax, eax
je 0x4099b2
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4099be
test al, 0x40
je 0x409d21
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409813
test al, 0x20
je 0x409846
mov dword [ebp - 0x4ac], 1
jmp 0x409cca