Function at 0x407380
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425643
push eax
mov dword fs:[0], esp
sub esp, 0x658
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
push eax
push str.CLSID
mov edi, ecx
push 0x80000000
call ebp
test eax, eax
jne 0x407c4a
push ebx
push esi
call fcn.00422ca8
mov ecx, dword [eax + 4]
call fcn.0041b2b4
lea ecx, [edi + 0x98]
push 0
mov dword [esp + 0x674], 0
call fcn.0041eae9
push 0
push 0x1b77
mov ecx, edi
call fcn.0041e9b4
mov ecx, eax
call fcn.0041eae9
push 8
push 0x3ea
mov ecx, edi
call fcn.0041e9b4
mov ecx, eax
call fcn.0041eae9
push 0x3ea
mov ecx, edi
call fcn.0041e9b4
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0xffffffffffffffff
lea ecx, [edi + 0xd8]
push 0
call fcn.004199b4
push 0xffffffffffffffff
lea ecx, [edi + 0x114]
push 0
call fcn.0041978c
push 0xffffffffffffffff
lea ecx, [edi + 0xec]
push 0
call fcn.004199b4
push 0xffffffffffffffff
lea ecx, [edi + 0x100]
push 0
call fcn.004199b4
mov edx, dword [edi + 0xb4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0000
push 0
push 0x1101
push edx
call ebx
lea esi, [edi + 0x128]
mov ecx, esi
call fcn.0041952f
push 0xff00
push 5
push 0x10
push 0x7f
mov ecx, esi
call fcn.00419578
test esi, esi
je 0x4074a2
mov esi, dword [esi + 4]
mov eax, dword [edi + 0xb4]
push esi
push 0
push 0x1109
push eax
call ebx
push eax
call fcn.00419545
mov edx, dword [edi + 0xb4]
lea ecx, [esp + 0x40]
push ecx
push 0
mov eax, 2
push 0x1100
push edx
mov dword [esp + 0x58], 0x27
mov dword [esp + 0x54], 0xffff0002
mov dword [esp + 0x50], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x68], 0x430cec
call ebx
mov esi, eax
mov eax, dword [esp + 0x678]
test eax, eax
mov dword [esp + 0x74], esi
je 0x407516
mov dword [eax], esi
mov ecx, dword [edi + 0xb4]
mov eax, 3
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x6c], 0xfffffffe
push eax
push 0
push 0x1100
push ecx
mov dword [esp + 0x68], 0x430ce4
call ebx
mov ecx, eax
mov eax, dword [esp + 0x67c]
test eax, eax
mov dword [esp + 0x38], ecx
je 0x40755b
mov dword [eax], ecx
lea edx, [esp + 0x2d0]
mov dword [esp + 0x40], esi
push edx
mov dword [esp + 0x48], 0xffff0003
mov dword [esp + 0x2d4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0xb8]
xor eax, eax
push 0x40
push ecx
push eax
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], eax
call esi
test eax, eax
jne 0x4078e1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10c]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xbc]
push ecx
push edx
push eax
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4078be
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0xb8]
push ecx
push edx
push eax
call ebp
test eax, eax
jne 0x4078be
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x1cc]
push ecx
push str.CLSID_sControl
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0xc4]
push eax
call section..text
add esp, 0x10
test eax, eax
je 0x4078b3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x1cc]
push ecx
push edx
push 0x80000000
call ebp
test eax, eax
jne 0x4078b3
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1cc]
push ecx
push edx
push str.ToolboxBitmap32
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4076a6
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1cc]
push ecx
push edx
push str.ToolboxBitmap
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x407788
lea ecx, [esp + 0x1cc]
push 0x430688
push ecx
call fcn.0040d8a7
push 0x430688
push 0
mov esi, eax
call fcn.0040d8a7
add esp, 0x10
mov ebp, eax
test esi, esi
je 0x40777c
test ebp, ebp
je 0x40777c
cmp byte [esi], 0x22
jne 0x4076fd
lea edx, [esi + 1]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x22
push esi
call fcn.0040d880
add esp, 8
test eax, eax
je 0x4076fd
mov byte [eax], 0
push ebp
call fcn.0040d86a
mov ebp, eax
add esp, 4
test ebp, ebp
jle 0x40777c
cmp dword [esp + 0x2e0], 1
jne 0x40771f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40772a
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x40776f
and ebp, 0xffff
push ebp
push ebx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
test esi, esi
je 0x40776f
push esi
call fcn.004209fb
test eax, eax
je 0x407751
mov eax, dword [eax + 4]
push 0xc0c0c0
push eax
mov eax, dword [edi + 0x12c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x10c]
test ecx, ecx
je 0x4078ac
mov al, byte [esp + 0x10c]
test al, al
je 0x4078ac
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10c]
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
call fcn.0041a35c
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1cc]
push eax
push ecx
push str.InprocServer32
push edx
mov byte [esp + 0x680], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x407822
mov al, byte [esp + 0x1cc]
test al, al
je 0x407822
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xec]
lea edx, [esp + 0x1cc]
push edx
jmp 0x407833
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xec]
push 0x435a60
push eax
call fcn.00419afd
mov edx, dword [edi + 0xb4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], eax
push ecx
push 0
push 0x1100
push edx
call ebx
mov eax, dword [edi + 0xe0]
lea ecx, [edi + 0xd8]
lea edx, [esp + 0xb8]
push edx
push eax
call fcn.00419afd
mov eax, dword [edi + 0x11c]
lea ecx, [edi + 0x114]
push 0
push eax
call fcn.004198a5
mov eax, dword [edi + 0x108]
lea ecx, [edi + 0x100]
push 0x435a60
push eax
call fcn.00419afd
lea ecx, [esp + 0x10]
mov byte [esp + 0x670], 0
call fcn.0041a2ee
mov eax, dword [esp + 0x24]
push eax
jmp 0x4078b8
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xb8]
inc eax
push 0x40
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
test eax, eax
je 0x4075aa
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x38]
mov eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x40], edx
push eax
push str.TypeLib
push 0x80000000
call ebp
test eax, eax
jne 0x407baa
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14c]
push 0x40
push ecx
push eax
push edx
mov dword [esp + 0x44], eax
call esi
test eax, eax
jne 0x407b9f
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14c]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x407b7c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x78]
push 0x40
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x407b71
lea edx, [esp + 0x14]
lea eax, [esp + 0x18c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x407b51
mov al, byte [esp + 0x78]
cmp al, 0x30
jl 0x407b51
cmp al, 0x39
jg 0x407b51
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x78]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x407b51
xor ebp, ebp
test ebp, ebp
jne 0x4079da
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
jmp 0x4079f5
cmp ebp, 1
jne 0x4079e3
xor esi, esi
jmp 0x4079f5
mov esi, ebp
sub esi, 2
neg esi
sbb esi, esi
and esi, 0x400
add esi, 9
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0xfc]
push str._Xwin32
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x364]
lea eax, [esp + 0xf8]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x407a45
inc ebp
cmp ebp, 4
jl 0x4079cc
jmp 0x407b34
lea edx, [esp + 0x78]
push edx
call fcn.0040d86a
mov ebp, eax
lea eax, [esp + 0x7c]
push 0x2e
push eax
call fcn.0040d880
add esp, 0xc
test eax, eax
je 0x407a70
inc eax
push eax
call fcn.0040d86a
add esp, 4
jmp 0x407a72
xor eax, eax
push eax
push ebp
lea ecx, [esp + 0x80]
push str._d._d
push ecx
call ebx
mov eax, dword [edi + 0x108]
lea ecx, [edi + 0x100]
add esp, 0x10
lea edx, [esp + 0x78]
push edx
push eax
call fcn.00419afd
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x6c], eax
inc eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x470]
push str._s
push edx
call ebx
mov edx, dword [edi + 0xb4]
add esp, 0x10
lea ecx, [esp + 0x40]
lea eax, [esp + 0x468]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf4]
lea ecx, [edi + 0xec]
lea edx, [esp + 0x364]
push edx
push eax
call fcn.00419afd
mov eax, dword [edi + 0xe0]
lea ecx, [edi + 0xd8]
lea edx, [esp + 0x14c]
push edx
push eax
call fcn.00419afd
mov eax, dword [edi + 0x11c]
lea ecx, [edi + 0x114]
push esi
push eax
call fcn.004198a5
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x78]
inc eax
push 0x40
push ecx
push eax
push edx
mov dword [esp + 0x40], eax
call esi
test eax, eax
je 0x407970
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14c]
inc eax
push 0x40
push ecx
push eax
push edx
mov dword [esp + 0x44], eax
call esi
test eax, eax
je 0x407938
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x3ea
mov ecx, edi
call fcn.0041e9b4
mov ecx, eax
call fcn.0041eae9
lea esi, [edi + 0x98]
push 8
mov ecx, esi
call fcn.0041eae9
push 8
push 0x1b77
mov ecx, edi
call fcn.0041e9b4
mov ecx, eax
call fcn.0041eae9
mov ebp, dword [esp + 0x74]
mov ecx, dword [edi + 0xb4]
push ebp
push 2
push 0x1102
push ecx
call ebx
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 0xb4]
push edx
push 2
push 0x1102
push eax
call ebx
mov ecx, dword [edi + 0xb4]
push ebp
push 9
push 0x110b
push ecx
call ebx
push 0
push 0
mov ecx, edi
call fcn.004092b0
mov ecx, esi
call fcn.0041eb52
mov dword [esp + 0x670], 0xffffffff
call fcn.00422ca8
mov ecx, dword [eax + 4]
call fcn.0041b2c9
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x664
ret 8