Function at 0x411460
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x420a88
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x240], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [esp + 0x14], 0
call edi
mov eax, dword [esp + 0x24c]
mov ebp, 0x10
cmp dword [esp + 0x260], ebp
jae 0x4114de
lea eax, [esp + 0x24c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x411520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfoSize_failed.Error_Code:_d.
call fcn.00412560
add esp, 8
cmp dword [esp + 0x260], ebp
jb 0x411519
mov ecx, dword [esp + 0x24c]
push ecx
call fcn.0041288e
add esp, 4
xor eax, eax
jmp 0x411698
push esi
call fcn.00412dc7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41155d
push str.Allocate_failed.
call fcn.00412560
add esp, 4
cmp dword [esp + 0x260], 0x10
jb 0x411519
mov edx, dword [esp + 0x24c]
push edx
call fcn.0041288e
add esp, 4
xor eax, eax
jmp 0x411698
push 0
call edi
cmp dword [esp + 0x260], 0x10
mov eax, dword [esp + 0x24c]
jae 0x411579
lea eax, [esp + 0x24c]
push ebp
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, eax
test esi, esi
jne 0x4115c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileVersionInfo_failed.Error_Code:_d.
call fcn.00412560
push ebp
call fcn.00412cea
add esp, 0xc
cmp dword [esp + 0x260], 0x10
jb 0x4115bd
mov eax, dword [esp + 0x24c]
push eax
call fcn.0041288e
add esp, 4
mov eax, esi
jmp 0x411698
push 0
call edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
mov edi, eax
test edi, edi
jne 0x41160e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VerQueryValue_failed.Error_Code:_d.
call fcn.00412560
push ebp
call fcn.00412cea
add esp, 0xc
lea ecx, [esp + 0x248]
call fcn.00401570
jmp 0x411696
xor esi, esi
test dword [esp + 0x10], 0xfffffffc
mov dword [esp + 0x14], 0
jbe 0x411673
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xFILEVERSION
mov ecx, 0x32
lea edi, [esp + 0x138]
call fcn.0040fcd0
add esp, 0xc
test eax, eax
jl 0x4116bf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, edi
push edx
push ebp
call sub.VERSION.dll_VerQueryValueA
mov edi, eax
test edi, edi
jne 0x4116d5
mov eax, dword [esp + 0x10]
inc esi
shr eax, 2
cmp esi, eax
jb 0x411622
push ebp
call fcn.00412cea
add esp, 4
cmp dword [esp + 0x260], 0x10
jb 0x411696
mov ecx, dword [esp + 0x24c]
push ecx
call fcn.0041288e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00412899
add esp, 0x234
ret
push ebp
call fcn.00412cea
add esp, 4
cmp dword [esp + 0x260], 0x10
jmp 0x411507
push 0x104
lea edx, [esp + 0x28]
push 0
push edx
call fcn.004183e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00418460
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411707
mov ecx, dword [esp + 0x1c]
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00401c30
push ebp
call fcn.00412cea
add esp, 4
lea ecx, [esp + 0x248]
call fcn.00401570
jmp 0x411696