Function at 0x4ed5f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
cmp esi, 2
jb 0x4ed61e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x14ec]
cmp dword [0x5e9fc8], ecx
je 0x4ed6c4
cmp dword [ebx + 0x150c], 0
movzx eax, cx
mov dword [0x5e9fc8], ecx
mov dword [ebp + 0xc], eax
je 0x4ed672
mov eax, 0x404
cmp cx, ax
jne 0x4ed672
pop ebx
mov dword [0x5e9fcc], 0x7000404
mov eax, 0x7000404
mov dword [0x5e9fd0], 0
pop esi
mov esp, ebp
pop ebp
ret
cmp ecx, 0xe0080404
je 0x4ed69a
cmp ecx, 0xe0090404
je 0x4ed69a
cmp ecx, 0xe00a0404
je 0x4ed69a
cmp ecx, 0xe00b0404
je 0x4ed69a
cmp ecx, 0xe00e0804
jne 0x4ed6b0
push 0xff
lea eax, [ebp - 0x110]
push eax
push ecx
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
jne 0x4ed6d1
mov dword [0x5e9fd0], 0
mov dword [0x5e9fcc], 0
mov eax, dword [esi*4 + 0x5e9fcc]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14f4], 0
push edi
jne 0x4ed849
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x110]
push 0xffffffffffffffff
push str.TINTLGNT.IME
push 0xffffffffffffffff
push eax
push 1
push 0x409
call edi
cmp eax, 2
je 0x4ed77f
push 0xffffffffffffffff
push str.CINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 1
push 0x409
call edi
cmp eax, 2
je 0x4ed77f
push 0xffffffffffffffff
push str.MSTCIPHA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 1
push 0x409
call edi
cmp eax, 2
je 0x4ed77f
push 0xffffffffffffffff
push str.PINTLGNT.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 1
push 0x409
call edi
cmp eax, 2
je 0x4ed77f
push 0xffffffffffffffff
push str.MSSCIPYA.IME
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 1
push 0x409
call edi
cmp eax, 2
jne 0x4ed849
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ed849
push eax
call fcn.004dee20
mov edi, eax
add esp, 4
test edi, edi
je 0x4ed840
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x110]
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4ed840
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x5aa414
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4ed840
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 + 0xc]
shl ecx, 8
cmp dword [ebx + 0x14f4], 0
jne 0x4ed88a
cmp eax, 0x404
jne 0x4ed86b
cmp ecx, 0x4020000
je 0x4ed88a
cmp ecx, 0x4030000
je 0x4ed88a
cmp ecx, 0x4040000
je 0x4ed88a
cmp ecx, 0x5000000
je 0x4ed88a
cmp ecx, 0x5010000
je 0x4ed88a
cmp ecx, 0x5020000
je 0x4ed88a
cmp ecx, 0x6000000
je 0x4ed88a
push edi
call fcn.004dedf0
add esp, 4
pop edi
mov dword [0x5e9fd0], 0
mov dword [0x5e9fcc], 0
mov eax, dword [esi*4 + 0x5e9fcc]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x804
jne 0x4ed840
cmp ecx, 0x4010000
je 0x4ed88a
cmp ecx, 0x4020000
je 0x4ed88a
cmp ecx, 0x5030000
jne 0x4ed840
or ecx, eax
mov eax, dword [edx + 0xc]
push edi
mov dword [0x5e9fcc], ecx
mov dword [0x5e9fd0], eax
call fcn.004dedf0
mov eax, dword [0x5e9fcc]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret