Function at 0x410510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a517
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x45d520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401960
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x4105a4
push 0x44eef8
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov ecx, dword [ebp - 0x4d0]
or ecx, 1
mov dword [ebp - 0x4d0], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
jmp 0x4108e5
mov edx, dword [ebp - 0x4ac]
push edx
call fcn.004371eb
add esp, 4
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x4105f2
push 0x44eef9
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov eax, dword [ebp - 0x4d0]
or eax, 1
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
jmp 0x4108e5
mov ecx, dword [ebp - 0x4b0]
push ecx
mov edx, dword [ebp - 0x4ac]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401960
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x410655
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.0043710e
add esp, 4
push 0x44eefa
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov edx, dword [ebp - 0x4d0]
or edx, 1
mov dword [ebp - 0x4d0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
jmp 0x4108e5
mov eax, dword [ebp - 0x4ac]
push eax
call fcn.004371eb
add esp, 4
mov dword [ebp - 0x4a4], eax
lea ecx, [ebp - 0x4a8]
push ecx
lea edx, [ebp - 0x4b4]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x4b0]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4106db
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.0043710e
add esp, 4
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.0043710e
add esp, 4
push 0x44eefb
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov eax, dword [ebp - 0x4d0]
or eax, 1
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
jmp 0x4108e5
mov dword [ebp - 0x4b8], 0
jmp 0x4106f6
mov ecx, dword [ebp - 0x4b8]
add ecx, 1
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x4a8]
shr edx, 2
cmp dword [ebp - 0x4b8], edx
jge 0x41089c
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0x4b4]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0x4b4]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_04x_04xFileVersion
mov eax, dword [ebp - 0x4a4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x4a4]
push eax
mov ecx, dword [ebp - 0x4b0]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41076d
jmp 0x4106e7
push 0x44ef40
mov edx, dword [ebp - 0x418]
push edx
call fcn.00436c54
add esp, 8
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.00436b9e
add esp, 4
mov dword [ebp - 0x4c4], eax
push 0x44ef44
push 0
call fcn.00436c54
add esp, 8
mov dword [ebp - 0x4bc], eax
mov ecx, dword [ebp - 0x4bc]
push ecx
call fcn.00436b9e
add esp, 4
mov dword [ebp - 0x4cc], eax
push 0x44ef48
push 0
call fcn.00436c54
add esp, 8
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x4bc]
push edx
call fcn.00436b9e
add esp, 4
mov dword [ebp - 0x4c0], eax
push 0x44ef4c
push 0
call fcn.00436c54
add esp, 8
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.00436b9e
add esp, 4
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
push ecx
mov edx, dword [ebp - 0x4c0]
push edx
mov eax, dword [ebp - 0x4cc]
push eax
mov ecx, dword [ebp - 0x4c4]
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x49c]
push edx
call fcn.00434444
add esp, 0x18
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0043710e
add esp, 4
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.0043710e
add esp, 4
lea edx, [ebp - 0x49c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov eax, dword [ebp - 0x4d0]
or eax, 1
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
jmp 0x4108e5
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.0043710e
add esp, 4
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.0043710e
add esp, 4
push 0x44ef15
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov eax, dword [ebp - 0x4d0]
or eax, 1
mov dword [ebp - 0x4d0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401940
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00433b5e
mov esp, ebp
pop ebp
ret