Function at 0x414940
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9666
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x5299c0]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x860], ebx
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x858], eax
mov eax, edi
mov dword [ebp - 0x870], ebx
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x864], 0
jb 0x4149b0
mov eax, dword [edi]
lea ecx, [ebp - 0x864]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [ebp - 0x850], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x858]
mov dword [eax], 0
test esi, esi
je 0x414c7f
push esi
call fcn.004ab9a4
mov esi, eax
add esp, 4
mov dword [ebp - 0x874], esi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x4149ff
mov edi, dword [edi]
push esi
push dword [ebp - 0x850]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x414c6d
lea eax, [ebp - 0x868]
mov dword [ebp - 0x868], 0
push eax
lea eax, [ebp - 0x86c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414c6d
mov eax, dword [ebp - 0x86c]
xorps xmm0, xmm0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x14], 0
mov eax, dword [eax]
rol eax, 0x10
push eax
lea eax, [ebp - 0x1c]
push str._08X
push eax
call edi
push 0x800
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.004c3810
push dword [ebp - 0x854]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x81c]
push str.StringFileInfo_s_s
push eax
call edi
add esp, 0x28
mov dword [ebp - 0x850], 0
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], 0
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x81c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414c6d
push dword [ebp - 0x850]
lea ecx, [ebp - 0x834]
call fcn.00410f10
cmp dword [ebp - 0x820], 0x10
lea ecx, [ebp - 0x834]
mov ebx, dword [ebp - 0x824]
lea edi, [ebp - 0x834]
cmovae ecx, dword [ebp - 0x834]
add ecx, ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x820], 0x10
mov edx, ecx
cmovae edi, dword [ebp - 0x834]
xor eax, eax
sub edx, edi
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0x414b37
cmp byte [edi], 0x2c
jne 0x414b2b
mov byte [edi], 0x2e
inc eax
inc edi
cmp eax, edx
jne 0x414b23
mov ebx, dword [ebp - 0x824]
cmp dword [ebp - 0x820], 0x10
lea edi, [ebp - 0x834]
cmovae edi, dword [ebp - 0x834]
test ebx, ebx
je 0x414ba8
push ebx
push 0x2e
push edi
call fcn.004c2c60
add esp, 0xc
test eax, eax
je 0x414ba8
sub eax, edi
cmp eax, 0xffffffff
je 0x414ba8
push eax
push 0
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040f620
mov dword [ebp - 0x85c], 1
cmp dword [eax + 0x14], 0x10
jb 0x414b8d
mov eax, dword [eax]
push eax
call fcn.004cb0a8
mov ebx, dword [ebp - 0x824]
add esp, 4
cmp eax, 5
jne 0x414ba8
mov eax, 1
jmp 0x414baa
xor eax, eax
test byte [ebp - 0x85c], 1
mov edi, dword [ebp - 0x858]
mov dword [edi], eax
je 0x414bce
lea ecx, [ebp - 0x84c]
call fcn.00401e30
mov eax, dword [edi]
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x414c3d
cmp dword [ebp - 0x820], 0x10
lea edx, [ebp - 0x834]
cmovae edx, dword [ebp - 0x834]
test ebx, ebx
je 0x414c3d
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x414c0a
nop dword [eax]
cmp ecx, edx
je 0x414c3d
dec ecx
cmp byte [ecx], 0x2e
jne 0x414c00
sub ecx, edx
cmp ecx, 0xffffffff
je 0x414c3d
push ecx
push 0
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040f620
push eax
lea ecx, [ebp - 0x834]
call fcn.0040abf0
lea ecx, [ebp - 0x84c]
call fcn.00401e30
mov ecx, dword [ebp - 0x870]
lea eax, [ebp - 0x834]
push eax
call fcn.00410ed0
lea ecx, [ebp - 0x834]
call fcn.00401e30
push 1
push esi
call fcn.004ab6c8
mov eax, dword [ebp - 0x870]
add esp, 8
jmp 0x414ca0
push 1
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004ab6c8
add esp, 8
push 0
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov dword [ebx + 0x14], 0xf
push 0x4f6751
mov byte [ebx], 0
call fcn.00403090
mov eax, ebx
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.004ab970
mov esp, ebp
pop ebp
ret