Function at 0x4959e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f03b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x610304]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x23c], eax
je 0x495a6d
mov eax, dword [ebp + 8]
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x495a6d
push 0x208
lea ecx, [ebp - 0x21a]
push ebx
push ecx
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
push esi
jne 0x495a74
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x495bf2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x234], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x495a6d
push esi
call fcn.0058432a
mov edx, dword [ebp - 0x234]
add esp, 4
mov edi, eax
push edi
push esi
push edx
lea eax, [ebp - 0x21c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x495a6d
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
push edx
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test dword [ebp - 0x228], 0xfffffffc
mov dword [ebp - 0x230], ebx
jbe 0x495be3
lea ebx, [ebx]
lea ecx, [ebp - 0x220]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
mov eax, dword [ebp - 0x22c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [ebp - 0x220]
push str.StringFileInfo_04x_04xCompanyName
push eax
mov dword [ebp - 4], ebx
call sym.txupd.exe_public:_void___cdecl_CTXStringW::Format_wchar_t_const__
add esp, 0x10
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x238], ebx
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x495b80
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.StringFileInfo040904e4CompanyName
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x495b9f
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x495b9f
mov edx, dword [ebp - 0x23c]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x495bc7
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, dword [ebp - 0x228]
add esi, 1
shr eax, 2
cmp esi, eax
jb 0x495b00
jmp 0x495be3
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x230], 1
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x230]
add esp, 4
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.00584870
mov esp, ebp
pop ebp
ret