Function at 0x4e9880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
call fcn.004f1400
test eax, eax
je 0x4e98ad
cmp eax, 0x80000004
jne 0x4e9bfc
mov eax, dword [ebp + 8]
mov dword [0x562aa4], eax
lea eax, [ebp - 0x830]
push 0x30c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x838]
mov dword [ebp - 0x838], 0
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4e99ba
push esi
call fcn.00425a0b
add esp, 4
mov edi, eax
lea eax, [ebp - 0x830]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e99b1
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x83c]
push eax
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
je 0x4e99b1
mov ecx, dword [ebp - 0x83c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x18]
push str._04x_04x
push eax
call fcn.00404640
push 0x534104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_s_s
push eax
call fcn.00404640
add esp, 0x20
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call esi
push 1
push dword [ebp - 0x834]
push 0
call fcn.004f3140
mov esi, eax
push esi
push str.Ethornell___BURIKO_General_Interpreter____s__
push 0x54ba68
call fcn.004013a0
push esi
call fcn.004259c8
add esp, 0x1c
push edi
call fcn.004259c8
add esp, 4
mov ecx, 0x54ba68
call fcn.004c5450
push 1
push ebx
push 0
call fcn.004f3140
mov esi, eax
mov ecx, esi
call fcn.00481730
push esi
call fcn.004259c8
add esp, 0x10
cmp dword [0x54ba64], 0
je 0x4e9a94
call fcn.004e9c20
push eax
lea eax, [ebp - 0x118]
push str.Buriko_General_Interpreter_for__s_is_executing.
push eax
call fcn.004013a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call ebx
lea edi, [eax + 0x1388]
call ebx
cmp eax, edi
jae 0x4e9a5d
nop dword [eax + eax]
lea eax, [ebp - 0x118]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4e9a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e9a8e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
cmp eax, edi
jb 0x4e9a20
push 0
push str.BGI___Main_window
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4e9bfc
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, esi
call fcn.004e9680
jmp 0x4e9bfc
mov dword [0x562984], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or edx, 0xffffffff
mov dword [0x565594], eax
xor ecx, ecx
call fcn.004c9bf0
test eax, eax
jne 0x4e9ac8
push 0x1010
push str.Error__
push str.This_hardware_does_not_support_required_function.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4e9bfc
call fcn.004c9be0
test eax, eax
jne 0x4e9aec
push 0x1010
push str.Error__
push str.This_hardware_does_not_support_SSE2_instructions
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4e9bfc
call fcn.004c9030
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4e9bfc
call fcn.004c14b0
call fcn.004eb720
call fcn.004e9c20
mov ecx, eax
call fcn.004ca990
call fcn.004c7340
test eax, eax
je 0x4e9b75
push dword [0x562aa0]
call dword [sym.imp.IMM32.dll_ImmGetDefaultIMEWnd]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x21
push 0x283
push eax
mov dword [ebp - 0x834], eax
call ebx
mov edi, dword [sym.imp.IMM32.dll_ImmAssociateContext]
push 0
push dword [0x562aa0]
call edi
mov esi, eax
call fcn.004e8e20
push esi
push dword [0x562aa0]
call edi
push 0
push 0x22
push 0x283
push dword [ebp - 0x834]
call ebx
call fcn.004ef5a0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x54ba64], 0
jne 0x4e9ba1
push dword [0x562984]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x562984]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x562918]
test eax, eax
je 0x4e9bfc
mov edx, dword [0x562990]
xor ecx, ecx
push 0
push 0
push 0
push 0
push dword [0x562994]
push 1
push 0
push eax
call fcn.004ca570
push dword [0x562918]
call fcn.004259c8
mov eax, dword [0x562990]
add esp, 0x24
test eax, eax
je 0x4e9bea
push eax
call fcn.004259c8
add esp, 4
mov eax, dword [0x562994]
test eax, eax
je 0x4e9bfc
push eax
call fcn.004259c8
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004259b7
mov esp, ebp
pop ebp
ret 0x10