Function at 0x45a080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562c18
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5b03a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x5c], 0
push dword [edi]
mov dword [ebp - 0x24], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x45a409
push esi
call fcn.004df179
add esp, 4
mov dword [ebp - 0x58], eax
test eax, eax
je 0x45a409
push eax
push esi
push dword [ebp - 0x24]
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x45a39d
cmp dword [0x5b2110], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x45a19e
push str.ntdll.dll
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45a194
push str.RtlGetNtVersionNumbers
push esi
call edi
test eax, eax
je 0x45a168
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x20], 0
je 0x45a194
mov eax, dword [ebp - 0x1c]
cmp eax, 6
jne 0x45a185
cmp dword [ebp - 0x14], 4
je 0x45a18a
jmp 0x45a194
cmp eax, 0xa
jb 0x45a194
mov dword [0x5c6b18], 1
mov dword [0x5b2110], 0
cmp dword [0x5c6b18], 0
je 0x45a346
cmp dword [0x5b210c], 0
je 0x45a26d
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
push eax
call edi
test eax, eax
je 0x45a263
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x4c]
push ecx
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call eax
mov ax, word [ebp - 0x4c]
cmp ax, 9
je 0x45a259
cmp ax, 6
je 0x45a259
cmp ax, 0xc
je 0x45a259
push str.IsWow64Process2
push str.kernel32
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x45a250
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x45a250
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x14], cx
sete al
mov dword [0x5c6b1c], eax
jmp 0x45a263
xor eax, eax
mov dword [0x5c6b1c], eax
jmp 0x45a263
mov dword [0x5c6b1c], 1
mov dword [0x5b210c], 0
cmp dword [0x5c6b1c], 0
jne 0x45a346
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x54]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x58]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45a346
xor edi, edi
test dword [ebp - 0x20], 0xfffffffc
jbe 0x45a346
nop
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0041bdd0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x54]
lea ecx, [eax + edi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0042e8d0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x58]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x45a3ad
add esi, 0xfffffff0
mov dword [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a330
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
inc edi
mov eax, dword [ebp - 0x20]
shr eax, 2
cmp edi, eax
jb 0x45a2b0
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x28], 0
push eax
push 0x593c74
push dword [ebp - 0x58]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45a39d
mov ecx, dword [ebp - 0x50]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call fcn.0042e8d0
add esp, 0x18
mov dword [ebp - 0x5c], 1
push dword [ebp - 0x58]
call fcn.004df174
mov eax, dword [ebp - 0x5c]
add esp, 4
jmp 0x45a40b
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x50]
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.0041be40
sub esp, 8
mov ecx, edi
call fcn.00452080
push ecx
mov ecx, edi
call fcn.00451fd0
mov dword [ebp - 0x5c], 1
add esi, 0xfffffff0
mov dword [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45a3f5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x45a39d
jmp 0x45a349
xor eax, eax
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.004deaec
mov esp, ebp
pop ebp
ret