Function at 0x412810
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5880db
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0
push edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x412aa9
lea eax, [esi + 1]
mov dword [ebp - 0xac], 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.004226a1
add esp, 4
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x412aa9
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412a95
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00568420
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0xa8]
add esp, 0xc
push eax
lea eax, [ebp - 0xa4]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412a95
mov ecx, dword [ebp - 0xa4]
push dword [ebp - 0x98]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x60]
push 0x28
push eax
call fcn.00402f80
add esp, 0x18
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412a95
push dword [ebp - 0xac]
lea ecx, [ebp - 0x90]
call fcn.00405dc0
mov eax, dword [ebp - 0x9c]
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x94], edi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], esi
add eax, 4
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa0], eax
nop
push esi
push 0x599008
lea ecx, [ebp - 0x90]
call fcn.00419420
mov edi, eax
lea ecx, [ebp - 0x90]
cmp edi, 0xffffffff
je 0x412a1e
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00419590
cmp dword [ebp - 0x68], 0
je 0x4129c7
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.0056e337
mov ecx, dword [ebp - 0xa0]
add esp, 4
inc dword [ebp - 0x94]
mov dword [ecx], eax
lea ecx, [ebp - 0x78]
lea esi, [edi + 1]
call fcn.00405d60
mov eax, dword [ebp - 0x98]
add dword [ebp - 0xa0], 4
inc eax
mov dword [ebp - 0x98], eax
cmp eax, 4
jl 0x412970
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x90]
mov edi, dword [ebp - 0x94]
mov dword [esi], edi
mov esi, 1
call fcn.00405d60
push dword [ebp - 0xb0]
call fcn.0042269c
add esp, 4
mov eax, esi
jmp 0x412aab
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.00419590
cmp dword [ebp - 0x68], 0
je 0x412a5d
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.0056e337
mov ecx, dword [ebp - 0x98]
add esp, 4
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x94]
inc edi
mov dword [esi + ecx*4 + 4], eax
jmp 0x412a69
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x78]
call fcn.00405d60
mov dword [esi], edi
lea ecx, [ebp - 0x90]
mov esi, 1
call fcn.00405d60
push dword [ebp - 0xb0]
call fcn.0042269c
add esp, 4
mov eax, esi
jmp 0x412aab
xor esi, esi
push dword [ebp - 0xb0]
call fcn.0042269c
add esp, 4
mov eax, esi
jmp 0x412aab
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.005663a7
mov esp, ebp
pop ebp
ret 0xc