Function at 0x40ca90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58203d
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5e3efc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], ecx
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.00405d60
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.StringFileInfo041203b5CompanyName
mov edx, dword [ebp - 0x11c]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cbfe
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
push ecx
push 0x593a58
lea edx, [ebp - 0x14c]
push edx
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x148]
call fcn.00402730
push eax
mov ecx, dword [ebp - 0x124]
add ecx, 0x2808
call fcn.004272f2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00402340
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
push str.StringFileInfo041203b5LegalCopyright
mov eax, dword [ebp - 0x11c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ccad
mov ecx, dword [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x134]
call fcn.00402050
mov dword [ebp - 4], 2
lea edx, [ebp - 0x134]
push edx
push 0x593a8c
lea eax, [ebp - 0x158]
push eax
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x154]
call fcn.00402730
push eax
mov ecx, dword [ebp - 0x124]
add ecx, 0x2888
call fcn.004272f2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x158]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00402340
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
push str.StringFileInfo041203b5FileDescription
mov ecx, dword [ebp - 0x11c]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cced
mov edx, dword [ebp - 0x118]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00402050
lea ecx, [ebp - 0x15c]
call fcn.00402340
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.StringFileInfo041203b5FileVersion
mov edx, dword [ebp - 0x11c]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cd9c
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x138]
call fcn.00402050
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x138]
push ecx
push 0x593aec
lea edx, [ebp - 0x168]
push edx
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x164]
call fcn.00402730
push eax
mov ecx, dword [ebp - 0x124]
add ecx, 0x2788
call fcn.004272f2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00402340
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x5eaa60
push 0x593af4
lea eax, [ebp - 0x13c]
push eax
call fcn.004059e0
add esp, 0xc
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x13c]
call fcn.00402730
push eax
mov ecx, dword [ebp - 0x124]
add ecx, 0x2908
call fcn.004272f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00402340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d390
mov esp, ebp
pop ebp
ret