Function at 0x401ad4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], eax
mov eax, 0x4644c0
call fcn.0045938c
mov dword [ebp - 0x34], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00463334
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 8
mov word [ebp - 0x40], 0x14
lea edx, [ebp - 4]
lea eax, [ebp - 8]
call fcn.00463334
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 8
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 8]
call fcn.00401a68
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x60], eax
push 0x4641b9
push dword [ebp - 0x54]
call fcn.004590d8
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x401d93
push dword [ebp - 0x60]
call fcn.004586b8
pop ecx
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
push dword [ebp - 0x60]
push 0
lea eax, [ebp - 8]
call fcn.00401a68
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x401d8a
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x68]
push ecx
push 0x4641ba
push dword [ebp - 0x64]
call sub.VERSION.DLL_VerQueryValueA
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 1
je 0x401bb2
cmp dword [ebp - 0x6c], 2
je 0x401bb2
cmp dword [ebp - 0x6c], 5
je 0x401bb2
cmp dword [ebp - 0x6c], 7
jne 0x401d8a
mov word [ebp - 0x40], 0x20
lea eax, [ebp - 0xc]
call fcn.00401dc4
inc dword [ebp - 0x34]
mov word [ebp - 0x40], 0x2c
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x70]
push ecx
push str.VarFileInfoTranslation
push dword [ebp - 0x64]
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x401cca
mov eax, dword [ebp - 0x70]
mov dx, word [eax]
and dx, 0xffff
mov word [ebp - 0x76], dx
mov ecx, dword [ebp - 0x70]
mov eax, dword [ecx]
shr eax, 0x10
mov word [ebp - 0x78], ax
mov word [ebp - 0x40], 0x38
lea eax, [ebp - 0x1c]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x34]
movzx eax, word [ebp - 0x78]
mov edx, 4
call fcn.004136b0
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.00463334
push eax
inc dword [ebp - 0x34]
lea eax, [ebp - 0x14]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x34]
movzx eax, word [ebp - 0x76]
mov edx, 4
call fcn.004136b0
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.00463334
push eax
inc dword [ebp - 0x34]
lea eax, [ebp - 0x24]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x34]
pop eax
pop edx
call fcn.004633f8
lea edx, [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.004633e4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004633b4
mov word [ebp - 0x40], 0x44
lea eax, [ebp - 0x28]
call fcn.00401dc4
mov ecx, eax
inc dword [ebp - 0x34]
lea edx, [ebp - 0xc]
mov eax, str.StringFileInfo_
call fcn.00463514
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
call fcn.00401dc4
push eax
inc dword [ebp - 0x34]
mov edx, 0x4641e6
lea eax, [ebp - 0x2c]
call fcn.004632fc
mov edx, eax
inc dword [ebp - 0x34]
pop ecx
pop eax
call fcn.004633f8
dec dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004633b4
mov word [ebp - 0x40], 0x2c
lea ecx, [ebp - 0x74]
push ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
call fcn.00401a68
push eax
push dword [ebp - 0x64]
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x401d64
push dword [ebp - 0x7c]
push dword [ebp - 0x54]
call fcn.004590d8
add esp, 8
dec dword [ebp - 0x34]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004633b4
mov word [ebp - 0x40], 8
push dword [ebp - 0x64]
call fcn.004584f0
pop ecx
dec dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004633b4
dec dword [ebp - 0x34]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004633b4
mov ecx, dword [ebp - 0x50]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret