Function at 0x418930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45459d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46a180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 0xf
push 0x4595e0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00403080
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x34], 0
je 0x418bbf
cmp dword [esi + 0x10], 0
je 0x418bbf
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x4189b4
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x418bbf
push 0x4596b0
push eax
call fcn.004312c9
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x418bbf
cmp dword [esi + 0x14], 7
jbe 0x4189ea
mov esi, dword [esi]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x418ba4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x38]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x418ba4
mov eax, dword [ebp - 0x44]
push 0x4596b0
push 0x208
movzx esi, word [eax]
movzx eax, word [eax + 2]
shl esi, 0x10
or esi, eax
call fcn.004312c9
mov ecx, eax
add esp, 8
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x418ba4
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push esi
push str.StringFileInfo_08lx_s
push 0x104
push ecx
call fcn.004194d0
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
add esp, 0x14
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp - 0x38]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x418b93
mov ecx, dword [ebp - 0x4c]
mov esi, ecx
mov dword [ebp - 0x50], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418a91
sub esi, edx
mov edx, dword [edi + 0x14]
sar esi, 1
mov dword [ebp - 0x54], edx
cmp esi, edx
ja 0x418ad7
mov dword [ebp - 0x30], edi
mov eax, edi
cmp edx, 7
jbe 0x418ab9
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ecx
push eax
call fcn.00432960
mov eax, dword [ebp - 0x30]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x418b90
cmp esi, 0x7ffffffe
ja 0x418c13
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x418af7
mov ecx, SysReAllocString
jmp 0x418b1b
mov eax, edx
shr eax, 1
mov dword [ebp - 0x30], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x30]
cmp edx, eax
jbe 0x418b11
mov ecx, SysReAllocString
jmp 0x418b1b
mov eax, dword [ebp - 0x30]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
push edi
call fcn.00402f50
mov dword [edi + 0x10], esi
mov ecx, eax
mov eax, dword [ebp - 0x30]
add esi, esi
push esi
push dword [ebp - 0x50]
mov dword [ebp - 0x3c], ecx
push ecx
mov dword [edi + 0x14], eax
call fcn.00432960
mov ecx, dword [ebp - 0x3c]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x54]
cmp eax, 7
jbe 0x418b8e
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x418b7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418c18
mov eax, edx
push ecx
push eax
call fcn.00430e05
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [edi], eax
jmp 0x418b90
mov dword [edi], ecx
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x38]
mov byte [ebp - 0x29], 1
call fcn.00430e13
add esp, 4
jmp 0x418bb6
push dword [ebp - 0x38]
call fcn.00430e13
mov esi, dword [ebp - 0x34]
add esp, 4
test esi, esi
je 0x418bbf
push esi
call fcn.00430e13
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x418bf5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418beb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418c18
push ecx
push edx
call fcn.00430e05
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004312d2
mov esp, ebp
pop ebp
ret
call fcn.004092a0
call fcn.00435fbe
int3