Function at 0x4094b0
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, 0x4bc
mov dword [ebp - 0x45c], ecx
movzx ecx, word [edx + 0x2c]
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x4a4], edx
mov dword [ebp - 0x478], 0x680072
mov dword [ebp - 0x474], 0x73
mov dword [ebp - 0x454], 5
mov dword [ebp - 0x458], 0xffff0002
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x494], 0
test byte [edx + 0x36], 0x40
je 0x409523
mov dword [ebp - 0x494], 7
add ecx, 7
mov dword [ebp - 0x4a0], ecx
mov ecx, dword [ebp - 0x494]
cmp dword [ebp - 0x4a0], ecx
jle 0x409778
lea esi, [esi]
mov ebx, dword [ebp - 0x490]
mov edi, dword [ebp - 0x494]
lea esi, [ebp - 0x484]
mov eax, dword [ebx]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x40975f
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 + 8], edx
mov edx, dword [ebp - 0x484]
mov dword [esp + 0x10], 0
mov edx, dword [edx]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x30]
sub esp, 0x18
test eax, eax
js 0x40975f
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 0x409808
mov ecx, dword [ebp - 0x4a4]
test byte [ecx + 0x36], 0x40
jne 0x409808
mov ebx, dword [ebp - 0x490]
mov ecx, dword [eax + 0x20]
lea edx, [ebp - 0x218]
mov dword [esp + 4], ebx
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 0x409e8c
cmp eax, 8
je 0x409e7b
cmp eax, 2
je 0x409ea0
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._SysStringLen_4
sub esp, 4
test eax, eax
jne 0x409780
mov eax, dword [ebp - 0x4a4]
test byte [eax + 0x37], 1
je 0x4097d9
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 0x4097f3
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 0x4098f0
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
add dword [ebp - 0x494], 1
mov eax, dword [ebp - 0x494]
cmp eax, dword [ebp - 0x4a0]
jne 0x409538
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x40f440
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 eax, esi
mov edx, 0x40f452
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x4a4]
test byte [eax + 0x37], 1
jne 0x409689
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 0x4096c8
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
mov ebx, dword [ebp - 0x490]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x484]
lea edx, [ebp - 0x218]
mov ecx, dword [eax + 0x20]
mov dword [esp + 4], ebx
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 0x409e18
cmp eax, 8
je 0x409df8
cmp eax, 2
je 0x409e68
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call sym._SysStringLen_4
sub esp, 4
test eax, eax
je 0x4097bd
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x40978c
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 0x409e30
mov edx, dword [ebp - 0x480]
test edx, edx
je 0x409932
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x48c], 0
movzx edx, word [eax + 0x18]
test dx, dx
jg 0x409b44
jmp 0x409d10
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 0x409c88
test al, 8
jne 0x409c2b
test al, 0x10
je 0x409c5a
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 0x409bb7
test al, 0x20
je 0x409a61
mov edi, dword [edx + 8]
lea eax, [edi + 8]
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 0x470]
mov dword [esp], eax
call sym._VariantInit_4
mov edx, 0x40f44c
mov eax, esi
sub esp, 4
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 0x409db8
mov eax, dword [ebp - 0x49c]
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x470]
mov dword [esp], eax
call sym._VariantChangeType_16
sub esp, 0x10
test eax, eax
je 0x409de0
mov edx, 0x40f448
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f55a
mov eax, esi
call dbg.AddToTLDataStrW
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]
lea edx, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x484]
add ebx, dword [eax + 8]
mov eax, dword [ebp - 0x490]
mov dword [esp + 4], eax
movzx eax, word [ebx + 4]
mov word [esp], ax
mov ecx, dword [ebx]
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 dword [ebp - 0x488], edi
jbe 0x409c70
mov ebx, dword [ebp - 0x498]
mov edx, dword [ebx + edi*4]
test edx, edx
je 0x409b18
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 0x409d10
mov edx, 0x40f54e
mov eax, esi
call dbg.AddToTLDataStrW
mov eax, dword [ebp - 0x484]
movzx edx, word [eax + 0x18]
cmp dx, 1
jne 0x409ca0
mov ebx, dword [ebp - 0x48c]
mov edx, dword [eax + 8]
shl ebx, 4
add edx, ebx
movzx eax, word [edx + 0xc]
test al, 1
jne 0x409bf0
test al, 2
jne 0x409960
test al, 4
je 0x409cf0
mov edx, 0x40f440
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 0x409c2b
test al, 0x10
jne 0x40999f
test al, 0x40
je 0x409c62
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
je 0x409a61
mov edi, dword [ecx + 8]
jmp 0x4099d9
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f6d4
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, 2
jne 0x409cd8
test al, 4
jne 0x409c88
test al, 8
je 0x409e4d
mov edx, 0x40f44c
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 0x40999f
test al, 0x40
jne 0x409bb7
test al, 0x20
je 0x409a61
jmp 0x4099d6
lea edx, [ebp - 0x478]
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409b18
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409b84
mov edx, 0x40f552
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 0x409cb8
mov eax, dword [ebp - 0x484]
jmp 0x409b4e
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x40996c
test al, 8
je 0x409eb0
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409c37
mov edx, 0x40f546
mov eax, esi
call dbg.AddToTLDataStrW
lea eax, [ebp - 0x45c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x418684]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call sym._SendMessageW_16
mov ecx, dword [ebp - 0x498]
sub esp, 0x10
mov dword [esp + 8], ecx
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 ecx, dword [ebp - 0x490]
mov edx, dword [ebp - 0x484]
sub esp, 4
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [eax + 0x50]
sub esp, 8
jmp 0x40975f
mov eax, esi
mov edx, 0x40f556
call dbg.AddToTLDataStrW
mov edx, dword [edi + 0x10]
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, 0x40f556
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409a55
mov edx, dword [ebp - 0x468]
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409a55
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propputref
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4098c6
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propput
jmp 0x409e09
mov eax, esi
mov edx, str._stdcall
call dbg.AddToTLDataStrW
mov edx, 0x40f45e
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409921
test al, 0x10
jne 0x40999f
test al, 0x40
jne 0x409bb7
jmp 0x4099ce
mov edx, 0x40f44c
mov eax, esi
call dbg.AddToTLDataStrW
mov edx, str.propget
jmp 0x409e09
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409e04
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409e24
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409e74
test al, 0x10
je 0x409ec5
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x4099ab
test al, 0x40
je 0x409eda
mov edx, 0x40f440
mov eax, esi
call dbg.AddToTLDataStrW
jmp 0x409bc3
test al, 0x20
je 0x409a6d
mov edi, dword [edx + 8]
lea eax, [edi + 8]
mov dword [ebp - 0x49c], eax
lea eax, [ebp - 0x470]
mov dword [esp], eax
call sym._VariantInit_4
mov edx, 0x40f440
mov eax, esi
sub esp, 4
call dbg.AddToTLDataStrW
jmp 0x4099ff