Function at 0x410150
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414a2c
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x42001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
test esi, esi
mov edi, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], 0
je 0x41035f
cmp word [esi], 0
je 0x41035f
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4101cd
push 0x418d74
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
jmp 0x41036a
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [ebp - 0x5c]
call edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 1
call edi
push 0
push esi
mov byte [ebp - 4], 2
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x410266
push edi
call fcn.00413d86
add esp, 4
push eax
push edi
xor edi, edi
push edi
push esi
mov dword [ebp - 0x64], eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41025a
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0x4189c0
push edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41025a
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
lea eax, [ebp - 0x5c]
push str._d._d._d._d
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0x18
mov ecx, dword [ebp - 0x64]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp - 0x60]
push edx
push 0x40
lea eax, [ebp - 0x50]
push eax
push ebx
call esi
test eax, eax
je 0x410322
cmp dword [ebp - 0x60], 0x40
jne 0x410322
mov ecx, dword [ebp - 0x14]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x60]
push edx
push 0xf8
lea eax, [ebp - 0x190]
push eax
push ebx
call esi
test eax, eax
je 0x410322
cmp dword [ebp - 0x60], 0xf8
jne 0x410322
mov ecx, dword [ebp - 0x188]
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], ecx
call dword [sym.imp.MSVCR80.dll__gmtime32]
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x84]
push edx
mov edx, dword [ebp - 0x80]
push eax
add ecx, 1
push ecx
add edx, 0x76c
push edx
lea eax, [ebp - 0x58]
push str.__04d__02d__02d__02d:_02d:_02d_GMT
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x5c]
push edx
push edi
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 0xc
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x70], 1
call esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call esi
jmp 0x41036a
push 0x418d74
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413efc
mov esp, ebp
pop ebp
ret