Function at 0x481550
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5673c7
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMozillaMozilla_Firefox
lea ecx, [ebp - 0x1c]
call fcn.0045a3a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x20019
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045b220
or esi, 0xffffffff
test eax, eax
je 0x48161d
push 0x57e6f8
push str.kernel32
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4815f2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x18], 0
je 0x481611
push 0x20119
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045b220
test eax, eax
je 0x48161d
mov dword [ebp - 0x18], 0
jmp 0x4819c5
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x48177b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 3
jge 0x481685
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x28], eax
sete byte [ebp - 0xd]
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x48179d
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x48179d
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
je 0x481723
mov esi, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
cmp ebx, dword [ebp - 0x4c]
jb 0x481708
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.004a4370
test al, al
je 0x48175f
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
lea ecx, [edi + esi*4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x48171c
push eax
call fcn.0045a3a0
inc ebx
or esi, 0xffffffff
mov dword [ebp - 0x50], ebx
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x28], 0x103
jne 0x481634
test ebx, ebx
jne 0x481769
mov dword [ebp - 0x18], ebx
jmp 0x481989
push 0x8007000e
call fcn.0045a8f0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x481785
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebx - 1]
mov byte [ebp - 4], 5
cmp eax, ebx
jb 0x4817a7
push 0x80070057
call fcn.0045a8f0
push dword [edi + eax*4]
lea eax, [ebp - 0x20]
push str._sMain
push eax
call fcn.0045acb0
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push 0x20019
push edi
push dword [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0045b220
test eax, eax
jne 0x481954
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x48180c
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x28], 0x104
jge 0x481849
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
push eax
push str.PathToExe
lea ecx, [ebp - 0x38]
call fcn.0045d730
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x48179d
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x48179d
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
je 0x481934
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x481934
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4818c8
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push 0
push 0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004826a0
lea edx, [esi - 0x10]
mov dword [ebp - 0x18], eax
or esi, 0xffffffff
mov byte [ebp - 4], 7
add esp, 0x14
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481912
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48195b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48195b
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481954
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x481969
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481986
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 1
test edi, edi
je 0x4819c5
xor esi, esi
test ebx, ebx
je 0x4819b9
mov edx, dword [edi + esi*4]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4819b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x481997
push edi
call fcn.0052616f
add esp, 4
or esi, 0xffffffff
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4819d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1c]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4819f4
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret