Function at 0x4d7df0
Capabilities:
Check os version
Get memory capacity

Disassembly:
sub esp, 0x5f4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x268]
push 0x104
push eax
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, eax
test edx, edx
jle 0x4d7e65
lea edi, [esp + 0x268]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x5a3190
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 0x5c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + edx + 0x268], al
je 0x4d7e54
dec edx
test edx, edx
jg 0x4d7e46
mov byte [esp + edx + 0x268], al
mov byte [esp + edx + 0x269], 0
jmp 0x4d7e74
mov byte [0x5a3190], 0
mov byte [esp + 0x268], 0
or ecx, 0xffffffff
lea edi, [esp + 0x268]
xor eax, eax
push 0x55b8b8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5a2f80
mov edx, ecx
mov esi, edi
mov edi, 0x5a3088
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5a3088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x5a2f80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.HCBG2.HLP]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x5a2f80
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00530d40
add esp, 8
test eax, eax
je 0x4d7f0d
push eax
call fcn.00530ca0
add esp, 4
jmp 0x4d7f33
mov edi, dword [str.HCBG2.HLP]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x5a2f80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x36c]
mov dword [esp + 0x36c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [esp + 0x37c]
xor edx, edx
test ebx, ebx
lea eax, [esp + 0x34]
push 0x34
sete dl
push eax
push 0
mov dword [0x5a32d4], edx
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
mov al, byte [esp + 0x5c]
mov ebx, 0x10
test al, 0x40
je 0x4d7f84
mov byte [0x5a32c8], bl
jmp 0x4d7f8d
shr al, 1
and al, 8
mov byte [0x5a32c8], al
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
je 0x4d7fbb
test byte [esp + 0x64], bl
je 0x4d7fbb
lea ecx, [esp + 0x168]
push str.The_currently_installed_sound_driver_doesnt_allow_for_asynchronous_playback.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov dword [esp + 0x10], 2
mov ebp, dword [sym.imp.USER32.dll_GetDesktopWindow]
call ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xc
push esi
call edi
push 8
push esi
mov byte [0x5a32cc], al
call edi
cmp eax, 0x280
jl 0x4d7ff4
push 0xa
push esi
call edi
cmp eax, 0x1e0
jge 0x4d8019
mov edx, dword [0x575cec]
lea eax, [esp + 0x168]
push edx
push str._s_requires_a_screen_resolution_of_640x480_or_larger.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x10], 2
push 0xc
push esi
call edi
cmp eax, ebx
jge 0x4d8047
mov ecx, dword [0x575cec]
lea edx, [esp + 0x168]
push ecx
push str._s_runs_best_when_run_in_the_video_driver_is_set_to_16bit_color_mode.
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x10], 1
push esi
call ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x1c]
mov dword [0x5a32ec], eax
lea ecx, [eax - 0x400000]
cmp ecx, 0x800000
mov dword [0x575cdc], ecx
jge 0x4d808b
mov dword [0x575cdc], 0x800000
cmp eax, 0xa00000
mov edi, 0x5a3088
sbb ecx, ecx
xor eax, eax
neg ecx
mov dword [0x5a32e8], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x500]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x500]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.BOARD.INI
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x5a32b8]
test ecx, ecx
je 0x4d8105
push 0xffffffffffffffff
call fcn.00470290
push 0x20c
call fcn.00532c80
add esp, 4
test eax, eax
jne 0x4d8151
mov ecx, dword [0x5a32b8]
test ecx, ecx
je 0x4d8151
push eax
call fcn.00470290
push 0x20c
call fcn.00532c80
add esp, 4
test eax, eax
jne 0x4d8151
push 0x2000
push str.Hoyle_Error
push str.Out_Of_Memory_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
jmp 0x4d8189
mov dword [eax], 0x208
mov ecx, dword [0x5a32c0]
mov edx, dword [0x5a3408]
add ecx, 0x208
cmp ecx, edx
mov dword [0x5a32c0], ecx
jle 0x4d8179
mov dword [0x5a3408], ecx
mov ecx, dword [0x5a340c]
inc ecx
mov dword [0x5a340c], ecx
lea ecx, [eax + 4]
test ecx, ecx
je 0x4d81a3
lea eax, [esp + 0x500]
push str.Settings
push eax
call fcn.004d4ac0
mov ebp, eax
jmp 0x4d81a5
xor ebp, ebp
push 0
push str.CDDrive
mov ecx, ebp
call fcn.00485b40
mov dl, al
mov edi, 0x575f38
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x68]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov byte [0x5a32d0], dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea ebx, [esp + 0x68]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.BOARD.PRF]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
test dl, dl
rep movsb byte es:[edi], byte [esi]
je 0x4d822a
lea ecx, [esp + 0x68]
push 0x55b8b8
push ecx
mov byte [esp + 0x70], dl
call fcn.00530d40
add esp, 8
test eax, eax
jne 0x4d8274
lea edx, [esp + 0x68]
push 0x55b8b8
push edx
mov byte [esp + 0x70], 0x63
call fcn.00530d40
add esp, 8
test eax, eax
jne 0x4d8274
mov cl, byte [esp + 0x68]
cmp cl, 0x7a
je 0x4d8270
mov bl, cl
lea eax, [esp + 0x68]
inc bl
push 0x55b8b8
push eax
mov byte [esp + 0x70], bl
call fcn.00530d40
add esp, 8
test eax, eax
je 0x4d8249
test eax, eax
je 0x4d828c
push eax
call fcn.00530ca0
mov cl, byte [esp + 0x6c]
add esp, 4
mov byte [0x5a32d0], cl
jmp 0x4d8338
mov edi, 0x5a3088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [0x5a32d0], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x55b8b8
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.BOARD.PRF]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x6c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00530d40
add esp, 8
test eax, eax
je 0x4d8313
push eax
call fcn.00530ca0
add esp, 4
mov dword [0x5a32d8], 1
jmp 0x4d8338
mov ecx, dword [0x575cec]
lea edx, [esp + 0x168]
push ecx
push str.Cannot_locate__s._Please_re_install.
push edx
mov dword [esp + 0x1c], 3
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test ebp, ebp
je 0x4d8345
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.0x4d8352.0
jmp dword [eax*4 + 0x4d84c0]
mov ecx, dword [0x575cec]
lea edx, [esp + 0x400]
push ecx
push str._s___WARNING
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x400]
lea ecx, [esp + 0x168]
push 0x2040
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov edx, dword [0x575cec]
push str.SERIOUS
push edx
lea eax, [esp + 0x408]
push str._s____s_ERROR
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
or ecx, 0xffffffff
mov edi, str.__Serious_errors_prevent_certain_aspects_of
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x168]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x168]
and ecx, 3
push 0x2024
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x575cec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x16c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._from_working.__Do_you_wish_to_continue_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x404]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x170]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
cmp eax, 6
sete dl
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov eax, dword [0x575cec]
push 0x2010
lea ecx, [esp + 0x16c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5f4
ret