Function at 0x40d472
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x40efc6
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x120
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40d79e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d79e
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x14]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d580
lea ecx, [ebp - 0x20]
call fcn.0040c520
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jne 0x40d580
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.JavaSoft
push ecx
mov dword [ebp - 0x14], ebx
call edi
cmp eax, ebx
jne 0x40d580
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40d580
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x414778
push ecx
call edi
cmp eax, ebx
jne 0x40d580
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40d580
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.Policy
push ecx
call edi
cmp eax, ebx
jne 0x40d580
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40d5b9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040c520
mov eax, 0x80004005
jmp 0x40d7a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x41478c
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xac]
push 0x414b94
push eax
mov dword [ebp - 0x28], 0x80
call edi
lea eax, [ebp - 0x12c]
push 0x414b98
push eax
call edi
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x41479c
mov dword [ebp + 8], ebx
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x4147b0
mov dword [ebp + 8], ebx
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x28]
mov byte [ebp - 0x24], bl
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x4147c0
mov dword [ebp - 0x28], 3
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, 2
je 0x40d6a6
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.0040cc62
pop ecx
lea eax, [ebp - 0x24]
pop ecx
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push 0x4147c8
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40d6d2
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40d765
lea eax, [ebp + 8]
push 4
push eax
push 4
push ebx
push str.UpdateDetected
push dword [ebp - 0x10]
mov dword [ebp + 8], 1
call esi
cmp dword [ebp + 0x10], ebx
je 0x40d70a
push dword [ebp + 0x10]
call edi
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push 0x4147e0
push dword [ebp - 0x10]
call esi
jmp 0x40d718
push 0x4147f4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0x14], ebx
je 0x40d736
push dword [ebp + 0x14]
call edi
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x414808
push dword [ebp - 0x10]
call esi
jmp 0x40d744
push 0x414818
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.UpdAvailNotifyCnt
push dword [ebp - 0x10]
call esi
push str.UpdAvailNotifyTime
push dword [ebp - 0x10]
call esi
push ebx
call fcn.0040d2ee
pop ecx
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d778
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x18], ebx
je 0x40d785
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40d792
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x40d7a3
push dword [ebp - 0x20]
call esi
jmp 0x40d7a3
call fcn.0040ac93
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret