Function at 0x416290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8a4
mov eax, dword [0x492afc]
xor eax, esp
mov dword [esp + 0x8a0], eax
mov eax, dword [esp + 0x8a8]
push ebx
push ebp
push esi
push edi
push str.GetNativeSystemInfo
push 0x478800
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416312
lea ecx, [esp + 0x2c]
push ecx
call eax
cmp word [esp + 0x2c], 9
sete al
test al, al
je 0x416312
push str.SOFTWAREWow6432NodeMozillaMozilla_Firefox
lea edx, [esp + 0x4a4]
push 0x104
push edx
call fcn.00444105
push str.SOFTWAREWow6432NodeMozillaAurora
push 0x104
lea eax, [esp + 0x6bc]
push eax
jmp 0x41633b
push str.SOFTWAREMozillaMozilla_Firefox
lea ecx, [esp + 0x4a4]
push 0x104
push ecx
call fcn.00444105
push str.SOFTWAREMozillaAurora
push 0x104
lea edx, [esp + 0x6bc]
push edx
call fcn.00444105
add esp, 0x18
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.00443d20
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, 7
mov esi, str.CurrentVersion
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0xc
mov dword [esp + 0x14], 0
xor edi, edi
lea esi, [esp + 0x4a0]
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x4163b3
inc edi
add esi, 0x208
cmp edi, 2
jl 0x416390
jmp 0x4163d8
mov eax, edi
imul eax, eax, 0x208
lea ecx, [esp + eax + 0x4a0]
push ecx
lea edx, [esp + 0x94]
push 0x104
push edx
call fcn.00444105
add esp, 0xc
cmp edi, 2
je 0x416445
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a2]
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x104
mov word [esp + 0x2a4], ax
call fcn.00443d20
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x29c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x80]
push edx
push eax
call esi
test eax, eax
je 0x41644c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4165eb
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
push 0x482c58
lea eax, [esp + 0x94]
push 0x104
push eax
mov dword [esp + 0x20], 0
call fcn.00442acd
lea ecx, [esp + 0x2a4]
push ecx
lea edx, [esp + 0xa0]
push 0x104
push edx
call fcn.00442acd
push 0x482c58
lea eax, [esp + 0xac]
push 0x104
push eax
call fcn.00442acd
mov ecx, dword [str.Main]
mov edx, dword [0x4788d0]
mov ax, word [0x4788d4]
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0xb8]
push 0x104
push edx
mov word [esp + 0x88], ax
call fcn.00442acd
add esp, 0x30
lea eax, [esp + 0x14]
push eax
push 1
push 0
lea ecx, [esp + 0x9c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x416445
mov ecx, dword [0x4788c0]
mov edx, dword [str.PathToExe]
mov eax, dword [0x4788bc]
push 0x104
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], edx
mov edx, dword [0x4788c4]
mov dword [esp + 0x64], eax
mov eax, dword [0x4788c8]
lea ecx, [esp + 0x29c]
push 0
push ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.00443d20
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x29c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x6c]
push edx
push eax
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
jne 0x4165e0
lea ecx, [esp + 0x298]
push ecx
lea ecx, [esp + 0x20]
call fcn.004027e0
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
mov dword [eax], esi
test esi, esi
je 0x4165a6
lea edx, [esi + 8]
push edx
call edi
call fcn.00416070
add esp, 4
test eax, eax
je 0x4165d7
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x1c]
mov byte [esp + 0x13], 1
cmp ebp, eax
je 0x4165d7
mov ecx, ebp
call fcn.00402910
mov dword [ebp], esi
test esi, esi
je 0x4165d7
add esi, 8
push esi
call edi
lea ecx, [esp + 0x1c]
call fcn.00402910
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x8b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004424e7
add esp, 0x8a4
ret