Function at 0x431518
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b738
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4946a0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4946a0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
xor esi, esi
mov ebx, edx
mov dword [esp + 0x2c], esi
cmp dword [ebx + 0x14], 0x10
mov edi, ecx
mov dword [esp + 0x24], esi
jb 0x431570
mov eax, dword [ebx]
jmp 0x431572
mov eax, ebx
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
cmp eax, esi
jne 0x431643
push str.System_error
mov dword [esp + 0x18], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [esp + 0x1c], str.FileUtils::getFileVersion
mov dword [esp + 0x20], 0x31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
call fcn.00402538
and dword [esp + 0x144], 0
lea eax, [esp + 0x70]
push eax
call fcn.004027f8
lea eax, [esp + 0x70]
push str.GetFileVersionInfoSize_
push eax
mov byte [esp + 0x14c], 1
call fcn.0040557e
pop ecx
pop ecx
lea esi, [esp + 0x70]
mov byte [esp + 0x144], 2
call fcn.004042bf
mov esi, eax
push 0x47dc14
push esi
call fcn.0040557e
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
push esi
lea edi, [esp + 0x4c]
call fcn.004347b6
lea ecx, [esp + 0xe8]
push ecx
lea esi, [esp + 0x18]
mov ecx, eax
mov byte [esp + 0x124], 3
call fcn.0041bf2a
mov dword [esp], 0x485454
lea eax, [esp + 0xec]
push eax
call fcn.00450c19
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov esi, eax
lea eax, [esp + 0x30]
call fcn.004121c7
mov dword [esp + 0x120], 4
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
cmp dword [ebx + 0x14], 0x10
jb 0x431677
mov ecx, dword [ebx]
jmp 0x431679
mov ecx, ebx
push dword [esp + 0x30]
push eax
push dword [esp + 0x2c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x43174d
push str.System_error
mov dword [esp + 0x18], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [esp + 0x1c], str.FileUtils::getFileVersion
mov dword [esp + 0x20], 0x324
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
call fcn.00402538
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x148], 5
call fcn.004027f8
lea eax, [esp + 0x70]
push str.GetFileVersionInfo_
push eax
mov byte [esp + 0x14c], 6
call fcn.0040557e
pop ecx
pop ecx
lea esi, [esp + 0x70]
mov byte [esp + 0x144], 7
call fcn.004042bf
mov esi, eax
push 0x47dc14
push esi
call fcn.0040557e
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
push esi
lea edi, [esp + 0x4c]
call fcn.004347b6
lea ecx, [esp + 0xe8]
push ecx
lea esi, [esp + 0x18]
mov ecx, eax
mov byte [esp + 0x124], 8
call fcn.0041bf2a
mov dword [esp], 0x485454
lea eax, [esp + 0xec]
jmp 0x43163d
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0x47dea4
push dword [esp + 0x3c]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x43182f
push str.System_error
mov dword [esp + 0x18], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [esp + 0x1c], str.FileUtils::getFileVersion
mov dword [esp + 0x20], 0x32f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebx
call fcn.00402538
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x148], 9
call fcn.004027f8
lea eax, [esp + 0x70]
push str.VerQueryValueW_
push eax
mov byte [esp + 0x14c], 0xa
call fcn.0040557e
pop ecx
pop ecx
lea esi, [esp + 0x70]
mov byte [esp + 0x144], 0xb
call fcn.004042bf
mov esi, eax
push 0x47dc14
push esi
call fcn.0040557e
pop ecx
pop ecx
mov ecx, dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
lea edi, [esp + 0x4c]
call fcn.004347b6
lea ecx, [esp + 0xe8]
push ecx
lea esi, [esp + 0x18]
mov ecx, eax
mov byte [esp + 0x124], 0xc
call fcn.0041bf2a
mov dword [esp], 0x485454
lea eax, [esp + 0xec]
jmp 0x43163d
cmp dword [esp + 0x28], 0x34
jae 0x4318cc
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov dword [esp + 0x34], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov dword [esp + 0x38], str.FileUtils::getFileVersion
mov dword [esp + 0x3c], 0x334
lea edi, [esp + 0x34]
call fcn.00402538
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x140], 0xd
call fcn.004027f8
lea eax, [esp + 0x68]
push str.VerQueryValueW_
push eax
mov byte [esp + 0x144], 0xe
call fcn.0040557e
pop ecx
pop ecx
lea esi, [esp + 0x68]
mov byte [esp + 0x13c], 0xf
call fcn.004042bf
mov esi, eax
push str.__returned_unexpected_buffer_size.
push esi
call fcn.0040557e
mov ecx, edi
push esi
lea edi, [esp + 0xf4]
call fcn.00401768
add esp, 0xc
push 0x4852c4
mov eax, edi
jmp 0x43163d
mov esi, dword [esp + 0x2c]
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.0044b040
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 [esp + 0x30], ebx
je 0x431916
push dword [esp + 0x30]
call fcn.00448f8c
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00448f97
mov esp, ebp
pop ebp
ret