Function at 0x41c540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525165
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x571134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ecx
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x20], 0
jb 0x41c581
mov eax, dword [ebx]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x41c5a3
mov edx, ebx
mov ecx, str.Could_not_get_version_size_for
call fcn.00421990
jmp 0x41c80a
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp edi, 0x7fffffff
ja 0x41c826
cmp edi, 0x1000
jb 0x41c604
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x41c82b
push eax
call fcn.004fb2ab
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41c835
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x41c60d
push edi
call fcn.004fb2ab
add esp, 4
push edi
lea esi, [eax + edi]
mov dword [ebp - 0x1c], eax
push 0
push eax
mov dword [ebp - 0x14], esi
call fcn.004fd610
add esp, 0xc
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x41c636
mov eax, dword [ebx]
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41c659
mov edx, ebx
mov ecx, str.Could_not_get_version_info_for
call fcn.00421990
jmp 0x41c7da
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0
push eax
push 0x564e30
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x41c68b
call fcn.00421c10
jmp 0x41c7da
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x41c7da
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x58], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x54], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x50], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x41c6df
mov ebx, dword [ebx]
mov dword [ebp - 0x44], ebx
cmp eax, 4
jb 0x41c75c
add eax, 0xfffffffd
lea ecx, [ebx + eax*2]
mov eax, ebx
mov dword [ebp - 0x48], ecx
nop
sub ecx, eax
mov edx, 0
sar ecx, 1
je 0x41c712
cmp word [eax], 0x45
je 0x41c710
cmp ecx, 1
je 0x41c712
add eax, 2
dec ecx
cmp word [eax], 0x45
jne 0x41c701
mov edx, eax
mov eax, edx
test eax, eax
je 0x41c75c
movzx edx, word [eax]
mov edi, 0x45
mov esi, 4
mov ecx, str.Edge
cmp edx, edi
jb 0x41c74d
mov ebx, eax
sub ebx, ecx
cmp dx, di
ja 0x41c74d
cmp esi, 1
je 0x41c755
movzx edx, word [ecx + ebx + 2]
add ecx, 2
dec esi
movzx edi, word [ecx]
cmp dx, di
jae 0x41c735
mov ecx, dword [ebp - 0x48]
add eax, 2
jmp 0x41c6f0
sub eax, dword [ebp - 0x44]
sar eax, 1
jmp 0x41c75f
or eax, 0xffffffff
xor ecx, ecx
mov edx, str.Edge
cmp eax, 0xffffffff
sete cl
lea ecx, [ecx*2 + 4]
push ecx
mov ecx, str.Chrome
cmovne ecx, edx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004090d0
lea eax, [ebp - 0x4c]
push eax
push ecx
lea eax, [ebp - 0x50]
push eax
push ecx
lea eax, [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
push ecx
lea edx, [ebp - 0x3c]
call fcn.00421e70
mov edx, dword [ebp - 0x28]
add esp, 0x20
cmp edx, 8
jb 0x41c7da
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c7d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c830
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41c80a
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x41c800
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c835
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f7
mov esp, ebp
pop ebp
ret
call fcn.0040dca0
call fcn.00401640
call fcn.00506c4f
call fcn.00506c4f
int3