Function at 0x4909a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x58ac5c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0
mov eax, dword [edi + 0xf0]
cmp dword [0x694e74], eax
jne 0x4909fc
mov eax, dword [ebp + 0xc]
pop edi
mov eax, dword [eax*4 + 0x694e78]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x110], 0
movzx ecx, ax
mov dword [0x694e74], eax
mov dword [ebp - 0x110], ecx
je 0x490a43
cmp ecx, 0x404
jne 0x490a43
mov dword [0x694e78], 0x7000404
mov eax, 0x7000404
mov dword [0x694e7c], 0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp eax, 0xe0080404
je 0x490a6c
cmp eax, 0xe0090404
je 0x490a6c
cmp eax, 0xe00a0404
je 0x490a6c
cmp eax, 0xe00b0404
je 0x490a6c
cmp eax, 0xe00e0804
jne 0x490c10
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x490c10
cmp dword [edi + 0xf8], 0
jne 0x490c10
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x104]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x490b33
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x490b33
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x490b33
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x490b33
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x490c10
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x490c10
push ebx
call fcn.0045bff0
mov esi, eax
add esp, 4
test esi, esi
je 0x490c07
push esi
push ebx
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x490c07
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x550084
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x490c07
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x110]
shl ecx, 8
cmp dword [edi + 0xf8], 0
jne 0x490c56
cmp eax, 0x404
jne 0x490c37
cmp ecx, 0x4020000
je 0x490c56
cmp ecx, 0x4030000
je 0x490c56
cmp ecx, 0x4040000
je 0x490c56
cmp ecx, 0x5000000
je 0x490c56
cmp ecx, 0x5010000
je 0x490c56
cmp ecx, 0x5020000
je 0x490c56
cmp ecx, 0x6000000
je 0x490c56
push esi
call fcn.0045bfc0
add esp, 4
pop esi
pop ebx
mov dword [0x694e7c], 0
xor eax, eax
mov dword [0x694e78], 0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
cmp eax, 0x804
jne 0x490c07
cmp ecx, 0x4010000
je 0x490c56
cmp ecx, 0x4020000
je 0x490c56
cmp ecx, 0x5030000
jne 0x490c07
or ecx, eax
mov eax, dword [edx + 0xc]
push esi
mov dword [0x694e78], ecx
mov dword [0x694e7c], eax
call fcn.0045bfc0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [0x694e78]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004b20f1
mov esp, ebp
pop ebp
ret