Function at 0x100ebaf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [edi + 0xec]
cmp dword [0x10183264], eax
jne 0x100ebb2f
mov eax, dword [ebp + 0xc]
pop edi
mov eax, dword [eax*4 + 0x10183268]
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10c], 0
movzx ecx, ax
mov dword [0x10183264], eax
mov dword [ebp + 8], ecx
je 0x100ebb69
cmp ecx, 0x404
jne 0x100ebb69
mov dword [0x10183268], 0x7000404
mov eax, 0x7000404
mov dword [0x1018326c], 0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp eax, 0xe0080404
je 0x100ebb92
cmp eax, 0xe0090404
je 0x100ebb92
cmp eax, 0xe00a0404
je 0x100ebb92
cmp eax, 0xe00b0404
je 0x100ebb92
cmp eax, 0xe00e0804
jne 0x100ebd20
push 0xff
lea ecx, [ebp - 0x10c]
push ecx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x100ebd20
cmp dword [edi + 0xf4], 0
jne 0x100ebd20
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x100ebc59
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x100ebc59
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x100ebc59
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 1
push 0x409
call esi
cmp eax, 2
je 0x100ebc59
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 1
push 0x409
call esi
cmp eax, 2
jne 0x100ebd20
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x100ebd20
push ebx
call fcn.100966d0
mov esi, eax
add esp, 4
test esi, esi
je 0x100ebd17
push esi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100ebd17
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10149234
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100ebd17
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
movzx ecx, al
and eax, 0xffff0000
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 8
cmp dword [edi + 0xf4], 0
jne 0x100ebd5c
cmp eax, 0x404
jne 0x100ebd3d
cmp ecx, 0x4020000
je 0x100ebd5c
cmp ecx, 0x4030000
je 0x100ebd5c
cmp ecx, 0x4040000
je 0x100ebd5c
cmp ecx, 0x5000000
je 0x100ebd5c
cmp ecx, 0x5010000
je 0x100ebd5c
cmp ecx, 0x5020000
je 0x100ebd5c
cmp ecx, 0x6000000
je 0x100ebd5c
push esi
call fcn.100966a0
add esp, 4
pop esi
pop ebx
mov dword [0x1018326c], 0
xor eax, eax
mov dword [0x10183268], 0
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x804
jne 0x100ebd17
cmp ecx, 0x4010000
je 0x100ebd5c
cmp ecx, 0x4020000
je 0x100ebd5c
cmp ecx, 0x5030000
jne 0x100ebd17
or ecx, eax
mov eax, dword [edx + 0xc]
push esi
mov dword [0x10183268], ecx
mov dword [0x1018326c], eax
call fcn.100966a0
mov eax, dword [0x10183268]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret