Function at 0x408faa
Capabilities:
Get file version info

Disassembly:
push 0xfc
mov eax, 0x4421c2
call fcn.0042cf82
xor esi, esi
mov ebx, edx
mov dword [ebp - 0x50], esi
cmp dword [ebx + 0x14], 0x10
mov edi, ecx
mov dword [ebp - 0x4c], esi
jb 0x408fcf
mov eax, dword [ebx]
jmp 0x408fd1
mov eax, ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x409089
push str.System_error
mov dword [ebp - 0x44], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x40], str.FileUtils::getFileVersion
mov dword [ebp - 0x3c], 0x31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x48], esp
push ebx
call fcn.00401d8b
and dword [ebp - 4], 0
lea eax, [ebp - 0x108]
push eax
call fcn.004020c9
lea eax, [ebp - 0x108]
push str.GetFileVersionInfoSize_
push eax
mov byte [ebp - 4], 1
call fcn.00404dc8
pop ecx
pop ecx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 2
call fcn.0040390d
mov esi, eax
push 0x448be4
push esi
call fcn.00404dc8
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [ebp - 0x70]
call fcn.0041312a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
push ecx
lea esi, [ebp - 0x44]
mov ecx, eax
call fcn.0040558f
mov dword [esp], 0x451878
lea eax, [ebp - 0x38]
push eax
call fcn.0042cae9
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov esi, eax
lea eax, [ebp - 0x64]
call fcn.0040572b
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x64]
cmp dword [ebx + 0x14], 0x10
jb 0x4090b3
mov ecx, dword [ebx]
jmp 0x4090b5
mov ecx, ebx
push dword [ebp - 0x64]
push eax
push dword [ebp - 0x4c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x409157
push str.System_error
mov dword [ebp - 0x44], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x40], str.FileUtils::getFileVersion
mov dword [ebp - 0x3c], 0x324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x48], esp
push ebx
call fcn.00401d8b
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 5
call fcn.004020c9
lea eax, [ebp - 0x108]
push str.GetFileVersionInfo_
push eax
mov byte [ebp - 4], 6
call fcn.00404dc8
pop ecx
pop ecx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 7
call fcn.0040390d
mov esi, eax
push 0x448be4
push esi
call fcn.00404dc8
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push esi
lea edi, [ebp - 0x70]
call fcn.0041312a
mov byte [ebp - 4], 8
jmp 0x40906b
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x4493c4
push dword [ebp - 0x64]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409205
push str.System_error
mov dword [ebp - 0x44], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x40], str.FileUtils::getFileVersion
mov dword [ebp - 0x3c], 0x32f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x48], esp
push ebx
call fcn.00401d8b
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 9
call fcn.004020c9
lea eax, [ebp - 0x108]
push str.VerQueryValueW_
push eax
mov byte [ebp - 4], 0xa
call fcn.00404dc8
pop ecx
pop ecx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 0xb
call fcn.0040390d
mov esi, eax
push 0x448be4
push esi
call fcn.00404dc8
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
lea edi, [ebp - 0x70]
call fcn.0041312a
mov byte [ebp - 4], 0xc
jmp 0x40906b
cmp dword [ebp - 0x54], 0x34
jae 0x409290
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x48], esp
push ebx
mov dword [ebp - 0x44], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [ebp - 0x40], str.FileUtils::getFileVersion
mov dword [ebp - 0x3c], 0x334
lea edi, [ebp - 0x44]
call fcn.00401d8b
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0xd
call fcn.004020c9
lea eax, [ebp - 0x108]
push str.VerQueryValueW_
push eax
mov byte [ebp - 4], 0xe
call fcn.00404dc8
pop ecx
pop ecx
lea esi, [ebp - 0x108]
mov byte [ebp - 4], 0xf
call fcn.0040390d
mov esi, eax
push str.__returned_unexpected_buffer_size.
push esi
call fcn.00404dc8
mov ecx, edi
push esi
lea edi, [ebp - 0x38]
call fcn.00401628
add esp, 0xc
push 0x4517ac
jmp 0x409080
mov esi, dword [ebp - 0x50]
xor ebx, ebx
push 0x10
push ebx
mov dword [edi + 0x24], 0xf
mov dword [edi + 0x20], ebx
push edi
mov byte [edi + 0x10], bl
call fcn.004285e0
movzx eax, word [esi + 0xa]
mov dword [edi], eax
movzx eax, word [esi + 8]
mov dword [edi + 4], eax
movzx eax, word [esi + 0xe]
mov dword [edi + 8], eax
movzx eax, word [esi + 0xc]
add esp, 0xc
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x64], ebx
je 0x4092d7
push dword [ebp - 0x64]
call fcn.0042654b
pop ecx
mov eax, edi
call fcn.0042d005
ret