Function at 0x401676
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5634e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
mov eax, dword [0x5be480]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4016f5
mov dword [ebp - 0x48], 1
push 0x58ef88
lea eax, [ebp - 0x48]
push eax
call fcn.00537554
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0054d061
add esp, 4
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40172b
mov dword [ebp - 0x50], 1
push 0x58ef88
lea ecx, [ebp - 0x50]
push ecx
call fcn.00537554
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x401759
mov dword [ebp - 0x54], 1
push 0x58ef88
lea eax, [ebp - 0x54]
push eax
call fcn.00537554
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0x5a92ec
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401788
mov dword [ebp - 0x58], 1
push 0x58ef88
lea ecx, [ebp - 0x58]
push ecx
call fcn.00537554
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x44]
shr eax, 0x10
and eax, 0xffff
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x44]
and ecx, 0xffff
and ecx, 0xffff
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x30]
shr edx, 0x10
and edx, 0xffff
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x30]
and eax, 0xffff
and eax, 0xffff
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
jne 0x4017e5
cmp dword [ebp - 0x34], 0
je 0x401808
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0x5a92f0
lea edx, [ebp - 0x1c]
push edx
call fcn.0054ab7c
add esp, 0x18
jmp 0x40182d
cmp dword [ebp - 0x40], 0
jne 0x401814
cmp dword [ebp - 0x3c], 0
je 0x40182d
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0x5a9308
lea edx, [ebp - 0x1c]
push edx
call fcn.0054ab7c
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0054d08a
add esp, 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0054d095
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
or al, 1
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0054d328
mov eax, dword [ebp + 8]
jmp 0x401892
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8