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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9f27
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMozillaMozilla_Firefox
lea ecx, [ebp - 0x1c]
call fcn.0043a420
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.0043b290
or esi, 0xffffffff
test eax, eax
je 0x45783d
push 0x509acc
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 0x457812
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x18], 0
je 0x457831
push 0x20119
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043b290
test eax, eax
je 0x45783d
mov dword [ebp - 0x18], 0
jmp 0x457be1
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.0043ae40
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45799b
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 0x4578a5
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
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.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x4579bd
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4579bd
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 0x457943
mov esi, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
cmp ebx, dword [ebp - 0x4c]
jb 0x457928
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.004911c0
test al, al
je 0x45797f
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 0x45793c
push eax
call fcn.0043a420
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 0x457963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x28], 0x103
jne 0x457854
test ebx, ebx
jne 0x457989
mov dword [ebp - 0x18], ebx
jmp 0x457ba5
push 0x8007000e
call fcn.0043a9b0
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4579a5
push 0x80004005
call fcn.0043a9b0
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 0x4579c7
push 0x80070057
call fcn.0043a9b0
push dword [edi + eax*4]
lea eax, [ebp - 0x20]
push str._sMain
push eax
call fcn.0043ad30
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.0043b290
test eax, eax
jne 0x457b70
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x457a2c
push 0x80004005
call fcn.0043a9b0
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 0x457a69
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
push eax
push str.PathToExe
lea ecx, [ebp - 0x38]
call fcn.0043d750
test eax, eax
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x4579bd
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4579bd
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 0x457b50
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457b50
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x457ae8
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00458580
lea edx, [esi - 0x10]
mov dword [ebp - 0x18], eax
or esi, 0xffffffff
mov byte [ebp - 4], 7
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457b2e
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 0x457b77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x457b77
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 0x457b70
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 0x457b85
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 0x457ba2
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 0x457be1
xor esi, esi
test ebx, ebx
je 0x457bd5
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 0x457bd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x457bb3
push edi
call fcn.004d92bb
add esp, 4
or esi, 0xffffffff
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x457bef
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 0x457c10
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