Function at 0x407520
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a4f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
mov eax, dword [0x427880]
xor eax, dword [esp + 0x47c]
push ebx
push ebp
push esi
mov dword [esp + 0x478], eax
push edi
mov dword [esp + 0x48], ecx
xor edi, edi
mov dword [esp + 0x488], edi
call sub.MFC70U.DLL_Ordinal_972
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
add eax, 0xcc
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x407a19
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x3c]
push str.Software_
push ecx
call fcn.00406420
push str.Java_Plug_in
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4a0], 1
call fcn.00403db0
add esp, 0x18
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x488], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x494], edi
mov dword [esp + 0x2c], 0x20019
je 0x4075ec
mov dword [esp + 0x2c], 0x20119
lea ecx, [esp + 0x4c]
call fcn.00404770
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push esi
push 0x80000002
mov byte [esp + 0x49c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407719
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x1c]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x80]
push edx
push edi
push eax
mov dword [esp + 0x44], 0x208
call ebp
test eax, eax
jne 0x407705
mov bl, 5
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404410
mov edx, dword [esp + 0x14]
push edx
mov byte [esp + 0x48c], bl
call dword [sym.imp.MSVCR70.dll__wtof]
fcomp qword [0x41f5f0]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4076aa
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004012c0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esi], eax
call fcn.00405150
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0x208
inc edi
mov byte [esp + 0x488], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x80]
push edx
push edi
push eax
call ebp
test eax, eax
je 0x407655
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x54]
cmp eax, 1
jge 0x407747
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 3
call fcn.00404bd0
lea eax, [esi - 0x10]
mov byte [esp + 0x488], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x407a0f
lea ebp, [eax - 1]
test ebp, ebp
jl 0x4079e2
mov bl, 0xa
jmp 0x407760
push 0x41e710
lea ecx, [esp + 0x24]
call fcn.00404410
mov eax, dword [esp + 0x50]
mov eax, dword [eax + ebp*4]
sub eax, 0x10
push eax
mov byte [esp + 0x48c], 6
call fcn.004012c0
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x41efc0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x498], 7
call fcn.00403db0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x4a4], 8
call fcn.00403d00
add esp, 0x1c
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x488], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x41e710
lea ecx, [esp + 0x14]
call fcn.00404410
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push esi
push 0x80000002
mov byte [esp + 0x49c], 0xb
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40794c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x278]
push eax
push 0
push 0
push str.JavaHome
push ecx
mov dword [esp + 0x5c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40794c
lea edx, [esp + 0x274]
push edx
lea ecx, [esp + 0x38]
call fcn.00404410
push str._binjava.exe
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x494], 0xc
call fcn.00403db0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48c], 0xd
call fcn.00401510
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x488], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x488], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
je 0x407950
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x64], esp
mov esi, esp
push eax
call fcn.004012c0
mov ecx, dword [esp + 0x50]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00407160
test eax, eax
jne 0x407a73
lea ecx, [esp + 0x10]
call fcn.00401430
lea ecx, [esp + 0x28]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x20]
mov byte [esp + 0x488], 4
call fcn.00401430
jmp 0x4079db
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x488], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x488], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x488], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x488], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
dec ebp
jns 0x407760
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 3
call fcn.00404bd0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x488], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x490]
add eax, 0xfffffff0
mov dword [esp + 0x488], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x47c]
xor ecx, dword [esp + 0x48c]
call fcn.00419c26
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x47c
ret 8
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xcc
call fcn.00401510
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
add ecx, 0xd0
push edx
call fcn.00401510
lea ecx, [esp + 0x10]
call fcn.00401430
lea ecx, [esp + 0x28]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x20]
call fcn.00401430
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 3
call fcn.00404bd0
lea ecx, [esp + 0x1c]
call fcn.00401430
lea ecx, [esp + 0x490]
call fcn.00401430
jmp 0x407a45