Function at 0x4004ebc0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40074478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov eax, dword [0x40097b74]
mov dword [ebp - 0x28], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test al, 1
jne 0x4004ec36
or eax, 1
mov dword [0x40097b74], eax
call fcn.40001ce1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4004ec1a
push 0x80004005
call fcn.40001ad1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
push 0x40074ed0
mov dword [0x40097b78], eax
call fcn.400542cc
add esp, 4
mov eax, dword [0x40097b78]
cmp dword [eax - 0xc], 0
jne 0x4004ee07
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x22e]
push eax
call fcn.40054740
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x20], 0
push eax
push 1
push 0
push str.SOFTWARE
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x4004ee4c
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.Microsoft
push esi
call ebx
test eax, eax
jne 0x4004ee41
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.Internet_Explorer
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4004ee27
mov eax, dword [ebp - 0x24]
push 0x110
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x340]
push 0
push eax
mov dword [ebp - 0x344], 0x114
call fcn.40054740
add esp, 0xc
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x340], 6
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jb 0x4004ed79
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x208
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.svcVersion
push dword [ebp - 0x18]
call eax
test eax, eax
jne 0x4004ed74
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4004ed40
cmp eax, 2
jne 0x4004ed74
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4004ed5a
test al, 1
jne 0x4004ed74
shr eax, 1
cmp word [ebp + eax*2 - 0x232], 0
je 0x4004ed63
jmp 0x4004ed74
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4004edbb
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x208
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.Version
push dword [ebp - 0x18]
call eax
test eax, eax
jne 0x4004edbb
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4004edac
cmp eax, 2
jne 0x4004edbb
cmp dword [ebp - 0x10], 0
jne 0x4004edbb
xor eax, eax
mov word [ebp - 0x230], ax
mov ecx, dword [ebp - 0x18]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4004edcf
push ecx
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4004edd6
push ebx
call eax
test esi, esi
je 0x4004ede1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
push eax
call fcn.40054188
add esp, 4
mov ecx, 0x40097b78
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.40007835
mov eax, dword [0x40097b78]
lea ecx, [eax - 0x10]
call fcn.400073ec
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4004ee38
push ebx
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4004ee4c
push esi
call eax
jmp 0x4004ee4c
test esi, esi
je 0x4004ee4c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.40001ce1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4004ee68
push 0x80004005
call fcn.40001ad1
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x4007c358
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4004eea5
movzx eax, ax
mov ecx, edi
push eax
call fcn.40007342
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x4007c358
call fcn.40054188
add esp, 4
mov ecx, edi
push eax
push 0x4007c358
call fcn.40007835
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret