Function at 0x4029e0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
push esi
xor esi, esi
lea eax, [ebp - 0x338]
push 0x208
push esi
push eax
mov dword [ebp - 0xc], esi
call fcn.004046e0
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x338]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea eax, [ebp - 0x338]
push 0x5c
push eax
call fcn.0040463c
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x402cc2
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp + 0x10], esi
jbe 0x402cc2
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
nop dword [eax]
mov esi, dword [ebp + 0xc]
xor edi, edi
add esi, eax
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x402b99
push eax
push ecx
call fcn.00412485
add esp, 8
test eax, eax
jne 0x402b96
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x38
push eax
push section..data
push 0
push 8
push str.AiLdaAppStatusInfo
push str.SOFTWAREAMDEEU
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x402b96
cmp ebx, 0x30
ja 0x402b96
cmp dword [ebx + 0x45d004], eax
je 0x402b96
cmp dword [esi + 0xc], eax
je 0x402cb5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x338]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x402b93
push ebx
mov dword [ebp - 0x1c], 0
call fcn.0040323d
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x402b93
push eax
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x338]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402b8a
push 0x104
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.004046e0
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x130]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.004027f0
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x402bd4
push ebx
call fcn.00403246
add esp, 4
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc edi
add esi, 4
cmp edi, 3
jb 0x402a70
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add ebx, 8
add dword [ebp - 0x10], 0x12
add eax, 0x48
sub dword [ebp + 0x10], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
jne 0x402a60
pop edi
pop ebx
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x200
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.004046e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add eax, 3
add eax, edi
mov dword [ebp - 4], 0
cmp dword [ecx + eax*4], 0
lea eax, [ecx + eax*4]
mov dword [ebp - 0x28], eax
jbe 0x402ca4
shl edi, 4
lea esi, [ecx + 0x18]
add edi, dword [ebp - 0x14]
add esi, edi
mov edi, eax
nop dword [eax]
push 0x200
push dword [esi]
lea eax, [ebp - 0x538]
push 0x200
push eax
push 0
call fcn.00412dee
mov eax, dword [esi]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c42
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x538]
push eax
push dword [ebp - 0x2c]
call fcn.00412720
add esp, 0xc
test eax, eax
je 0x402c9d
push 0x200
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.004046e0
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add esi, 4
mov dword [ebp - 4], eax
cmp eax, dword [edi]
jb 0x402c20
push ebx
call fcn.00403246
mov ebx, dword [ebp - 8]
add esp, 4
jmp 0x402ba6
mov dword [ebp - 0xc], 1
push ebx
call fcn.00403246
mov ebx, dword [ebp - 8]
add esp, 4
jmp 0x402ba6
mov edx, 1
mov dword [ebp - 0xc], edx
jmp 0x402ba9
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc