Function at 0x4029f0
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 - 8], esi
call fcn.00404410
add esp, 0xc
mov dword [ebp - 0x24], 0x104
lea eax, [ebp - 0x24]
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.0040436e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x402cd7
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp + 0x10], esi
jbe 0x402cd7
mov edx, dword [ebp + 0xc]
push ebx
push edi
mov edi, 3
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], ebx
xor esi, esi
mov dword [ebp - 0x14], edx
mov eax, edx
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x402baf
push eax
push ecx
call fcn.0040eee8
add esp, 8
test eax, eax
jne 0x402bac
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 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 0x402bac
cmp ebx, 0x30
ja 0x402bac
cmp dword [ebx + 0x44a004], eax
je 0x402bac
mov ecx, dword [ebp + 0xc]
lea eax, [edi + esi]
cmp dword [ecx + eax*4], 0
je 0x402cca
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x338]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x402ba9
push edi
mov dword [ebp - 0x10], 0
call fcn.0040319e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402ba6
push ebx
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x338]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402b9d
push 0x104
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00404410
mov ecx, dword [ebp - 0x28]
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.00402800
add esp, 0x1c
lea eax, [ebp - 0x10]
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 0x402bf4
push ebx
call fcn.004031a7
add esp, 4
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
inc esi
add eax, 4
mov dword [ebp - 0x14], eax
cmp esi, 3
jb 0x402a80
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
add ebx, 8
add dword [ebp - 0x18], 0x48
add edx, 0x48
mov ecx, dword [ebp + 8]
add edi, 0x12
sub dword [ebp + 0x10], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edi
jne 0x402a72
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x200
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.00404410
mov ecx, dword [ebp - 4]
xor edi, edi
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ecx + esi]
cmp dword [edx + eax*4], edi
jbe 0x402cb6
lea eax, [ecx + esi]
shl esi, 4
add esi, 0x18
lea eax, [edx + eax*4]
add esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
add esi, edx
push 0x200
push dword [esi]
lea eax, [ebp - 0x538]
push 0x200
push eax
push 0
call fcn.0040f60a
mov eax, dword [esi]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c54
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x538]
push eax
push dword [ebp - 0x2c]
call fcn.0040f1e0
add esp, 0xc
test eax, eax
je 0x402caf
push 0x200
lea eax, [ebp - 0x538]
push 0
push eax
call fcn.00404410
mov eax, dword [ebp - 0x14]
inc edi
add esp, 0xc
add esi, 4
cmp edi, dword [eax]
jb 0x402c32
push ebx
call fcn.004031a7
mov ebx, dword [ebp - 0xc]
add esp, 4
mov edi, dword [ebp - 4]
jmp 0x402bc2
mov dword [ebp - 8], 1
push ebx
call fcn.004031a7
mov ebx, dword [ebp - 0xc]
add esp, 4
mov edi, dword [ebp - 4]
jmp 0x402bc2
mov eax, 1
mov dword [ebp - 8], eax
jmp 0x402bc5
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc