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

Disassembly:
mov eax, 0x40f02e
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x120
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40cc81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40cc81
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 0x40ca63
lea ecx, [ebp - 0x20]
call fcn.0040bd29
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
jne 0x40ca63
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 0x40ca63
lea ecx, [ebp - 0x1c]
call fcn.0040bd29
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40ca63
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.Java_Update
push ecx
call edi
cmp eax, ebx
jne 0x40ca63
lea ecx, [ebp - 0x18]
call fcn.0040bd29
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40ca63
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 0x40ca63
lea ecx, [ebp - 0x10]
call fcn.0040bd29
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40ca9c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040bd29
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040bd29
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040bd29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040bd29
mov eax, 0x80004005
jmp 0x40cc88
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 0x415880
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xac]
push 0x415d78
push eax
mov dword [ebp - 0x28], 0x80
call edi
lea eax, [ebp - 0x12c]
push 0x415d7c
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 0x415890
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 0x4158a4
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 0x4158b4
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 0x40cb89
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.0040c13a
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 0x4158bc
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 0x40cbb5
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40cc48
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 0x40cbed
push dword [ebp + 0x10]
call edi
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push 0x4158d4
push dword [ebp - 0x10]
call esi
jmp 0x40cbfb
push 0x4158e8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0x14], ebx
je 0x40cc19
push dword [ebp + 0x14]
call edi
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x4158fc
push dword [ebp - 0x10]
call esi
jmp 0x40cc27
push 0x41590c
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.0040c7cc
pop ecx
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40cc5b
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x18], ebx
je 0x40cc68
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40cc75
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x40cc86
push dword [ebp - 0x20]
call esi
jmp 0x40cc86
call fcn.0040a47e
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret