Function at 0x40ac80
Capabilities:
Initialize iwebbrowser2
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44467d
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
mov dword [esp + 0x370], 1
mov esi, dword [esp + 0x378]
push 0x44b9af
push esi
call fcn.0042f58c
xor ebx, ebx
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
je 0x40ad02
lea eax, [esi - 0x10]
mov byte [esp + 0x370], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40b37f
mov ecx, 3
call fcn.00409cb0
xor ebp, ebp
mov dword [esp + 0x28], ebp
push 0x103
mov byte [esp + 0x374], 2
lea ecx, [esp + 0x265]
push ebx
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x26c], bl
call fcn.00431520
push 0x103
lea edx, [esp + 0x16d]
push ebx
push edx
call fcn.00431520
mov ax, word [0x44beb0]
mov cl, byte [0x44beb2]
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x160], ax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov byte [esp + 0x182], cl
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40ada8
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.AllowWindowReuse
push ebp
mov dword [esp + 0x2c], 4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.AllowWindowReuse
push ebp
mov dword [esp + 0x2c], ebx
call edi
cmp ebp, ebx
je 0x40adfb
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x28], ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerTabbedBrowsing
push SysReAllocStringLen
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40ae39
cmp ebp, ebx
je 0x40ae31
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.ShortcutBehavior
push ebp
mov dword [esp + 0x2c], 4
call esi
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.ShortcutBehavior
push ebp
mov dword [esp + 0x2c], ebx
call edi
cmp ebp, ebx
je 0x40ae80
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x28], ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerNew_Windows
push SysReAllocStringLen
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40aebe
cmp ebp, ebx
je 0x40aeb6
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], ebp
push str.PopupMgr
lea ecx, [esp + 0x2c]
push ecx
lea edi, [esp + 0x28]
lea esi, [esp + 0x268]
call fcn.0040fb30
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [esp + 0x160]
push eax
push 1
push ebx
push str.PopupMgr
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, ebx
je 0x40af12
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x28], ebp
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x24]
push ecx
push 0x44ae0c
push 4
push ebx
push 0x44ae2c
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0xa4]
call eax
mov word [esp + 0x34], 3
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x370], 3
cmp dword [esp + 0x24], ebx
jne 0x40af7d
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp ebp, ebx
je 0x40b361
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b361
mov esi, dword [esp + 0x37c]
push 0x44b9af
push esi
call fcn.0042f58c
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40b06f
push 0x44b9af
lea ecx, [esp + 0x1c]
call fcn.00403330
push esi
lea ecx, [esp + 0x1c]
push str.Referer:__s
push ecx
mov byte [esp + 0x37c], 4
call fcn.004033f0
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
lea eax, [esp + 0x4c]
push eax
mov word [esp + 0x50], bx
call fcn.0040f870
mov byte [esp + 0x370], 5
mov eax, dword [esp + 0x378]
cmp eax, ebx
je 0x40b00c
push eax
call fcn.0040f7d0
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x40b012
push 0x8007000e
call fcn.00401520
xor esi, esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x38]
push edx
push edx
mov byte [esp + 0x37c], 6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x2c]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x370], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b0c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b0c1
mov eax, dword [esp + 0x378]
cmp eax, ebx
je 0x40b097
push eax
call fcn.0040f7d0
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x40b09d
push 0x8007000e
call fcn.00401520
xor esi, esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x34]
push edx
push edx
push edx
mov byte [esp + 0x37c], 7
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x2c]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x20], ebx
push 0x103
lea ecx, [esp + 0x5d]
mov byte [esp + 0x374], 8
push ebx
push ecx
mov dword [esp + 0x24], 0x104
mov byte [esp + 0x64], bl
call fcn.00431520
mov ecx, dword [0x45a554]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [0x457a90]
lea eax, [esp + 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40b123
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
push str.IR_1
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x60]
call fcn.0040fb30
cmp eax, ebx
jne 0x40b202
mov edx, esi
push edx
call fcn.0042f686
add esp, 4
mov dword [esp + 0x1c], eax
push str.IR_2
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], 0x104
call fcn.0040fb30
cmp eax, ebx
jne 0x40b202
mov ecx, esi
push ecx
call fcn.0042f686
add esp, 4
push str.IR_3
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], 0x104
call fcn.0040fb30
cmp eax, ebx
jne 0x40b202
mov eax, esi
push eax
call fcn.0042f686
add esp, 4
push str.IR_4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x104
call fcn.0040fb30
cmp eax, ebx
jne 0x40b202
mov edx, esi
push edx
call fcn.0042f686
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
push 1
push esi
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40b217
push eax
call edi
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0xa4]
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x38], ebx
call esi
cmp eax, ebx
jne 0x40b260
cmp ebp, ebx
je 0x40b25c
push ebp
call edi
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push str.AllowWindowReuse
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, ebx
je 0x40b287
push ebp
call edi
xor ebp, ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerTabbedBrowsing
push SysReAllocStringLen
mov dword [esp + 0x38], ebx
call esi
cmp eax, ebx
jne 0x40b2b9
cmp ebp, ebx
je 0x40b2b5
push ebp
call edi
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push ebx
push str.ShortcutBehavior
push ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, ebx
je 0x40b2e0
push ebp
call edi
xor ebp, ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftInternet_ExplorerNew_Windows
push SysReAllocStringLen
mov dword [esp + 0x38], ebx
call esi
cmp eax, ebx
jne 0x40b312
cmp ebp, ebx
je 0x40b30e
push ebp
call edi
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [esp + 0x264]
push eax
push 1
push ebx
push str.PopupMgr
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebp, ebx
je 0x40b344
push ebp
call edi
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40b34f
push eax
call edi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp ebp, ebx
je 0x40b361
push ebp
call edi
mov byte [esp + 0x370], bl
mov eax, dword [esp + 0x378]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b38b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x37c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x360
ret 8