Function at 0x408e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478836
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4ad3bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi + 0x14], 0
cmp dword [edi + 0x18], 8
jb 0x408ecc
mov eax, dword [edi + 4]
jmp 0x408ecf
lea eax, [edi + 4]
xor ecx, ecx
lea esi, [edi + 0x1c]
mov word [eax], cx
mov dword [esi + 0x14], ecx
cmp dword [esi + 0x18], 0x10
jb 0x408ee5
mov eax, dword [esi + 4]
jmp 0x408ee8
lea eax, [esi + 4]
lea ebx, [edi + 0x38]
mov byte [eax], cl
mov dword [ebp - 0x24], ebx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00405fe0
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [eax + 0x18], 8
lea ebx, [eax + 4]
jb 0x408f1b
mov eax, dword [ebx]
jmp 0x408f1d
mov eax, ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x408f6d
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.std::exception.0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Can_not_get_version_size
xorps xmm0, xmm0
mov byte [ebp - 0x24], 1
push eax
movq qword [ebp - 0x30], xmm0
call fcn.00441440
add esp, 8
mov dword [ebp - 0x34], vtable.std::runtime_error.0
lea eax, [ebp - 0x34]
push 0x4a4b68
push eax
call fcn.00441550
mov ecx, dword [esi + 0x14]
cmp eax, ecx
ja 0x408f8f
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0x10
jb 0x408f86
mov ecx, dword [esi + 4]
mov byte [ecx + eax], 0
jmp 0x408f9e
lea ecx, [esi + 4]
mov byte [ecx + eax], 0
jmp 0x408f9e
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00406540
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x18], 0x10
jb 0x408fa9
mov esi, dword [esi + 4]
jmp 0x408fac
add esi, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 8
jb 0x408fb7
mov ebx, dword [ebx]
push esi
push eax
push dword [ebp - 0x20]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x409005
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.std::exception.0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Can_not_get_version_info
xorps xmm0, xmm0
mov byte [ebp - 0x24], 1
push eax
movq qword [ebp - 0x30], xmm0
call fcn.00441440
add esp, 8
mov dword [ebp - 0x34], vtable.std::runtime_error.0
lea eax, [ebp - 0x34]
push 0x4a4b68
push eax
call fcn.00441550
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x480b7c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40905b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.std::exception.0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.Can_not_get_base_version_info
xorps xmm0, xmm0
mov byte [ebp - 0x18], 1
push eax
movq qword [ebp - 0x3c], xmm0
call fcn.00441440
add esp, 8
mov dword [ebp - 0x40], vtable.std::runtime_error.0
lea eax, [ebp - 0x40]
push 0x4a4b68
push eax
call fcn.00441550
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4090a6
xor esi, esi
test dword [ebp - 0x14], 0xfffffffc
jbe 0x4090a6
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x24]
nop dword [eax]
push edi
mov ecx, ebx
call fcn.00409ca0
mov eax, dword [ebp - 0x14]
inc esi
shr eax, 2
add edi, 4
cmp esi, eax
jb 0x409090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4