Function at 0x4104f9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f68a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x44100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
and dword [ebp - 4], 0
lea edi, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0xb4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
push dword [edx]
lea eax, [ebp - 0x90]
push eax
call fcn.0040f6a0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
test ecx, ecx
je 0x410592
call fcn.0040f1db
mov byte [ebp - 4], 1
jmp 0x4105a1
push dword [ebp - 0x98]
lea ecx, [ebp - 0x50]
call fcn.00411066
pop ecx
shr eax, 0x1f
test al, al
je 0x4105bf
call dword [0x43000c]
mov dword [ebx], eax
lea ecx, [ebp - 0x50]
call fcn.0040ffac
mov eax, ebx
jmp 0x410857
push edi
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4105a8
mov dword [ebp - 0x98], edi
push esi
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa8]
call fcn.00410b69
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa4]
push esi
cmp eax, esi
jb 0x410620
push edi
push dword [ebp - 0xa4]
call fcn.00414f20
mov eax, dword [ebp - 0xa4]
add esp, 0xc
add eax, esi
mov dword [ebp - 0xa4], eax
jmp 0x410632
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00410dde
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 6
push dword [ebp - 0xa8]
sub eax, dword [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x410669
call dword [0x43000c]
lea ecx, [ebp - 0xa8]
mov dword [ebx], eax
call fcn.0040ff8d
jmp 0x4105b0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], edi
push eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], edi
push eax
push str.StringFileInfo040904B0ProductVersion
push dword [ebp - 0xa8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41073e
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41073e
mov ecx, dword [ebp - 0xac]
xor edx, edx
cmp word [ecx + eax*2 - 2], dx
jne 0x4106c0
dec eax
mov dword [ebp - 0x94], eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 4
mov byte [ebp - 0x18], dl
call fcn.00410e92
push dword [ebp - 0x98]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00410c27
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x8c]
xor edi, edi
pop ecx
cmp esi, eax
je 0x41072e
push edi
mov ecx, esi
call fcn.004100ff
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0xc]
call fcn.00410bb5
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0041041e
lea ecx, [ebp - 0x8c]
call fcn.0040fff4
jmp 0x410825
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], edi
push eax
lea eax, [ebp - 0x90]
push eax
push 0x43cf98
push dword [ebp - 0xa8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410825
cmp dword [ebp - 0x94], 0x34
jne 0x410825
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
call fcn.0040f670
push 7
mov eax, dword [ebp - 0x90]
lea esi, [ebp - 0x6c]
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [eax + 0xa]
lea edx, [ebp - 0x2c]
push ecx
push ecx
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
push eax
call fcn.00410fcd
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.004104ad
mov ecx, dword [ebp - 0x90]
mov esi, eax
movzx ecx, word [ecx + 8]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.00410fcd
add esp, 0x10
mov ecx, esi
call fcn.004104ad
mov ecx, dword [ebp - 0x90]
mov esi, eax
movzx ecx, word [ecx + 0xe]
lea edx, [esi + 4]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [esi]
call fcn.00410fcd
add esp, 0x10
mov ecx, esi
call fcn.004104ad
mov ecx, dword [ebp - 0x90]
lea edx, [eax + 4]
movzx ecx, word [ecx + 0xc]
push ecx
push ecx
push dword [edx + 4]
push ecx
mov ecx, dword [eax]
call fcn.00410fcd
add esp, 0x10
xor edi, edi
lea ecx, [ebp - 0xa8]
call fcn.0040ff8d
lea ecx, [ebp - 0x50]
call fcn.0040ffac
mov dword [ebx], edi
jmp 0x4105b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411d9f
leave
ret