Function at 0x4939ba
Capabilities:
Get file version info

Disassembly:
mov eax, 0x501f2c
call fcn.004c13fc
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x10], esp
je 0x4939e6
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jg 0x4939ed
xor eax, eax
jmp 0x493d47
push esi
call fcn.004db3f6
pop ecx
mov dword [ebp - 0x18], eax
push eax
push esi
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x493a1a
lea eax, [ebp - 0x28]
push 0x52d7e0
push eax
mov dword [ebp - 0x28], edi
call fcn.004c337f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x493a44
lea eax, [ebp - 0x2c]
push 0x52d7e0
push eax
mov dword [ebp - 0x2c], edi
call fcn.004c337f
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [0x542d10]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], eax
movzx esi, word [ebp - 0x2e]
mov dword [ebp + 8], edi
push esi
movzx edi, bx
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xCompanyName
push eax
mov byte [ebp - 4], 1
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493a97
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xLegalCopyRight
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493ad3
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [eax + 4]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493b0f
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [eax + 0x14]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493b4b
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [eax + 0x18]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493b87
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [eax + 8]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493bc3
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [eax + 0xc]
call fcn.004daf9b
and dword [ebp + 8], 0
push esi
push edi
lea eax, [ebp - 0x14]
push str.StringFileInfo_04x_04xInternalName
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x493c01
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.004daf9b
jmp 0x493c04
mov esi, dword [ebp + 0xc]
mov eax, dword [0x542d10]
mov dword [ebp - 0x24], eax
mov eax, ebx
mov byte [ebp - 4], 2
and eax, 0x3ff
cmp ax, 4
jne 0x493c35
shr bx, 0xa
cmp bx, 2
jne 0x493c2e
push 0x53ee00
jmp 0x493c40
push 0x53edf4
jmp 0x493c40
cmp ax, 9
jne 0x493c48
push str.Hexin_Software
lea ecx, [ebp - 0x24]
call fcn.004daf9b
mov eax, dword [ebp - 0x24]
xor edi, edi
cmp dword [eax - 8], edi
je 0x493d56
push eax
mov ecx, esi
call fcn.004d2299
cmp eax, edi
jl 0x493d56
lea eax, [ebp - 0x20]
push 3
push eax
lea ecx, [esi + 0x10]
call fcn.004d21ff
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
lea ebx, [esi + 0x1c]
cmp dword [eax - 8], edi
jne 0x493c92
push 0x53baa4
push ebx
call fcn.004d261f
pop ecx
pop ecx
jmp 0x493ca1
push eax
push str.__3s
push ebx
call fcn.004d261f
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push 0x539b00
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x493cc9
push 0x53edd8
lea ecx, [ebp - 0x20]
call fcn.004daf9b
jmp 0x493cfb
mov esi, dword [ebp + 8]
push 0xd
pop ecx
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x5c]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
mov eax, dword [ebp - 0x60]
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
lea eax, [ebp - 0x20]
push str._d._02d._02d._04d
push eax
call fcn.004d261f
add esp, 0x18
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.004db22a
lea ecx, [ebp - 0x20]
mov dword [ebp + 0xc], 1
mov byte [ebp - 4], 2
call fcn.004dae12
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004dae12
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004dae12
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x493d44
push dword [ebp - 0x18]
call fcn.004db41f
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ebp - 0x34]
push 0x52d7e0
push eax
mov dword [ebp - 0x34], edi
call fcn.004c337f
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], eax
mov eax, 0x493d31
ret