Function at 0x40c89d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40ef8c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x418
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
push 0x4144d8
mov byte [ebp - 4], 4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ecx
lea eax, [ebp - 0x10]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x414504
push SysReAllocString
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
jne 0x40c987
lea ecx, [ebp - 0x24]
call fcn.0040c517
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x24], ecx
jne 0x40c987
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push str.MicroSoft
push ecx
call esi
cmp eax, ebx
jne 0x40c987
lea ecx, [ebp - 0x18]
call fcn.0040c517
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40c987
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push str.Windows
push ecx
call esi
cmp eax, ebx
jne 0x40c987
lea ecx, [ebp - 0x14]
call fcn.0040c517
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40c987
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push str.CurrentVersion
push ecx
call esi
cmp eax, ebx
jne 0x40c987
lea ecx, [ebp - 0x1c]
call fcn.0040c517
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40c9c7
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040c517
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040c517
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c517
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040c517
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040c517
jmp 0x40cab6
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push str.Internet_Settings
push ecx
call esi
cmp eax, ebx
jne 0x40c9ee
lea ecx, [ebp - 0x20]
call fcn.0040c517
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
je 0x40ca08
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040c517
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca88
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.User_Agent
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ca72
lea eax, [ebp - 0x424]
push 0x29
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40ca72
lea ecx, [ebp - 0x424]
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.__jupdate
push dword [ebp + 8]
call esi
push edi
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x20], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40ca85
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40ca92
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
je 0x40ca9f
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40caac
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x24], ebx
je 0x40cab6
push dword [ebp - 0x24]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret