Function at 0x4022d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d713
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x43b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b880
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x402371
push 0xc
call fcn.004011d0
add esp, 4
push 0x42f6a4
push 0x43c328
call fcn.00403310
add esp, 8
push 7
call fcn.004011d0
add esp, 4
push 0x4058f0
mov ecx, dword [ebp + 8]
push ecx
push str.Could_not_get_version_size_for
push 0x43c328
call fcn.00403310
add esp, 8
push eax
call fcn.004032e0
add esp, 8
mov ecx, eax
call fcn.00408740
nop
jmp 0x402624
lea ecx, [ebp - 0x2d]
call fcn.00406160
push eax
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x58]
call fcn.00406ec0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040b4c0
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b880
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x402416
push 0xc
call fcn.004011d0
add esp, 4
push 0x42f6cc
push 0x43c328
call fcn.00403310
add esp, 8
push 7
call fcn.004011d0
add esp, 4
push 0x4058f0
mov edx, dword [ebp + 8]
push edx
push str.Could_not_get_version_info_for
push 0x43c328
call fcn.00403310
add esp, 8
push eax
call fcn.004032e0
add esp, 8
mov ecx, eax
call fcn.00408740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407d70
nop
jmp 0x402624
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x42f6f4
lea ecx, [ebp - 0x58]
call fcn.0040b4c0
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40249c
push 0xc
call fcn.004011d0
add esp, 4
push 0x42f6f8
push 0x43c328
call fcn.00403310
add esp, 8
push 7
call fcn.004011d0
add esp, 4
push 0x4058f0
push str.Could_not_query_version_value.
push 0x43c328
call fcn.00403310
add esp, 8
mov ecx, eax
call fcn.00408740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407d70
nop
jmp 0x402624
cmp dword [ebp - 0x2c], 0
je 0x402614
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x28]
call fcn.00406b20
mov byte [ebp - 4], 1
push 0
push 0x42f720
mov ecx, dword [ebp + 8]
call fcn.0040cb90
cmp eax, 0xffffffff
je 0x402520
push str.Brave
lea ecx, [ebp - 0x28]
call fcn.00408180
nop
jmp 0x402552
push 0
push 0x42f730
mov ecx, dword [ebp + 8]
call fcn.0040cb90
cmp eax, 0xffffffff
je 0x402544
push str.Edge
lea ecx, [ebp - 0x28]
call fcn.00408180
nop
jmp 0x402552
push str.Chrome
lea ecx, [ebp - 0x28]
call fcn.00408180
nop
push 0xa
call fcn.004011d0
add esp, 4
push 0x42f748
push 0x43c278
call fcn.00403310
add esp, 8
push 7
call fcn.004011d0
add esp, 4
push 0x4058f0
mov edx, dword [ebp - 0x40]
push edx
push 0x42f750
mov eax, dword [ebp - 0x44]
push eax
push 0x42f754
mov ecx, dword [ebp - 0x48]
push ecx
push 0x42f758
mov edx, dword [ebp - 0x4c]
push edx
push 0x42f75c
lea eax, [ebp - 0x28]
push eax
push str.Found
push 0x43c278
call fcn.00403310
add esp, 8
push eax
call fcn.004032e0
add esp, 8
push eax
call fcn.00403310
add esp, 8
mov ecx, eax
call fcn.004085c0
push eax
call fcn.00403310
add esp, 8
mov ecx, eax
call fcn.004085c0
push eax
call fcn.00403310
add esp, 8
mov ecx, eax
call fcn.004085c0
push eax
call fcn.00403310
add esp, 8
mov ecx, eax
call fcn.004085c0
mov ecx, eax
call fcn.00408740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407c50
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407d70
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410725
mov esp, ebp
pop ebp
ret