Function at 0x4767b0
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4fdb40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x180
call fcn.00458820
push str.Spellarium3.log
mov dword [0x5c1d08], eax
push 0x1d
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0x90]
mov eax, dword [0x5c1d08]
push dword [ebp - 0x94]
push str.Windows_version__u._u
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add esp, 0x10
cmp dword [ebp - 0x94], 6
jb 0x47689a
cmp dword [ebp - 0x90], 2
jb 0x47689a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x476887
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x47686b
mov ecx, dword [0x5c1d08]
push str.setDPIAware
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
add esp, 8
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x47689a
mov eax, dword [0x5c1d08]
push str.cannot_find_SetProcessDPIAware
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x47689a
mov eax, dword [0x5c1d08]
push str.cannot_load_user32.dll
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
add esp, 8
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
cmp eax, 0x400
jle 0x4768b6
push 1
call edi
cmp eax, 0x300
jg 0x4768bd
mov byte [0x4f9c80], 0
mov ecx, dword [0x5c1d08]
test ecx, ecx
je 0x476e0b
mov eax, dword [ecx]
push 0x65
push 0x1a
push ecx
call dword [eax + 0x38]
mov eax, dword [0x5c1d08]
mov esi, dword [eax]
movzx eax, byte [0x4f9c80]
push eax
push 1
call edi
push eax
push 0
call edi
push eax
push str.Initial_mode:_dx_d____CanWorkInWindowedMode_d
push dword [0x5c1d08]
call dword [esi + 0x1c]
mov eax, dword [0x5c1d08]
add esp, 0x14
mov ecx, dword [eax]
push str.Spellarium_3
push 0x1b
push eax
call dword [ecx + 0x38]
mov eax, dword [0x5c1d08]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [0x5c1d08]
push 0
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [0x5c1d08]
push 1
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [0x5c1d08]
push 0
push 0x65
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [0x5c1d08]
push 0xffffffffffffffff
push 0x18
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0x2c
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476982
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov byte [eax + 0x2b], cl
jmp 0x476984
xor eax, eax
mov ecx, eax
mov dword [0x5c1d24], eax
call fcn.00446bd0
mov ecx, dword [0x5c1d24]
call fcn.00446d00
push 0x1c
call fcn.004b0566
add esp, 4
test eax, eax
je 0x4769b2
mov ecx, eax
call fcn.0048c470
jmp 0x4769b4
xor eax, eax
mov ecx, eax
mov dword [0x5c4b94], eax
call fcn.0048c5f0
test al, al
jne 0x4769d7
mov eax, dword [0x5c1d08]
push str.Error:_resource_pack_init_failure
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
add esp, 8
push 8
call fcn.004b0566
mov esi, eax
add esp, 4
test esi, esi
je 0x4769ff
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00476700
mov dword [esi], eax
jmp 0x476a01
xor esi, esi
mov ecx, esi
mov dword [0x5c1d30], esi
call fcn.004620a0
mov eax, dword [0x5c1d08]
push 0
push 3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [0x5c1d08]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
test al, al
je 0x476d98
mov ecx, dword [0x5c1d24]
call fcn.00476650
push 8
call fcn.004b0566
mov esi, eax
add esp, 4
test esi, esi
je 0x476a67
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0045c6d0
mov dword [esi], eax
jmp 0x476a69
xor esi, esi
push 0x30
mov dword [0x5c1d14], esi
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476a86
mov ecx, eax
call fcn.004763d0
jmp 0x476a88
xor eax, eax
push 0xc
mov dword [0x5c1d0c], eax
call fcn.004b0566
mov esi, eax
add esp, 4
test esi, esi
je 0x476ab9
push 0
push 0
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00476770
mov dword [esi], eax
jmp 0x476abb
xor esi, esi
push 3
mov dword [0x5c1d10], esi
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476ada
mov word [eax], 0x101
mov byte [eax + 2], 1
jmp 0x476adc
xor eax, eax
push 0x3c
mov dword [0x5c1d18], eax
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476af8
mov ecx, eax
call fcn.004761c0
jmp 0x476afa
xor eax, eax
push 0xca8
mov dword [0x5c1d20], eax
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476b19
mov ecx, eax
call fcn.00476160
jmp 0x476b1b
xor eax, eax
mov ecx, eax
mov dword [0x5c1d1c], eax
call fcn.00487380
push 0x48
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476b3e
mov dword [eax + 0x38], 0
jmp 0x476b40
xor eax, eax
mov ecx, eax
mov dword [0x5c1d28], eax
call fcn.00447c50
push 0x57b8
call fcn.004b0566
add esp, 4
test eax, eax
je 0x476b66
mov ecx, eax
call fcn.004762f0
jmp 0x476b68
xor eax, eax
mov ecx, eax
mov dword [0x5c1d2c], eax
call fcn.004966a0
test al, al
jne 0x476b8b
mov eax, dword [0x5c1d08]
push str.Error:_sound_init_failure
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
add esp, 8
mov eax, dword [0x5c1d08]
push 0x476480
push 8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push 0x4765f0
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push fcn.00476650
push 0xc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push 0x476470
push 0xa
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push 0x476450
push 0xb
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x24
call fcn.004b0566
mov esi, eax
add esp, 4
test esi, esi
je 0x476c21
mov dword [esi], vtable.CCursedApp::CSoundVolumeSetter.0
mov byte [esi + 8], 0
mov dword [esi + 0xc], vtable.CLogoGUI.0
mov dword [esi + 0x14], vtable.CGameGUI.0
mov dword [esi + 0x18], vtable.CLoadingGUI.0
mov byte [esi + 0x1c], 0
mov dword [esi + 0x20], 0
jmp 0x476c23
xor esi, esi
mov dword [0x5c1d34], esi
mov dword [esi + 4], 0
mov ecx, dword [0x5c1d10]
push esi
call fcn.004a4070
lea ecx, [esi + 0xc]
call fcn.00463530
mov eax, dword [0x5c1d08]
push str.hge__System_Start___
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [0x5c1d08]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [0x5c1d08]
push 0
push 8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push 0
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x5c1d08]
push 0
push 0xc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, dword [0x5c1d0c]
call fcn.004a4dd0
mov esi, dword [0x5c1d0c]
test esi, esi
je 0x476cb4
mov ecx, esi
call fcn.004a4330
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d28]
test esi, esi
je 0x476cce
mov ecx, esi
call fcn.00424d40
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d1c]
mov eax, dword [esi + 0xca0]
sub eax, dword [esi + 0xc9c]
sar eax, 2
test eax, eax
je 0x476cf4
mov ecx, esi
call fcn.004882d0
mov esi, dword [0x5c1d1c]
test esi, esi
je 0x476d08
mov ecx, esi
call fcn.00485f50
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d2c]
test esi, esi
je 0x476d22
mov ecx, esi
call fcn.00495f00
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d34]
test esi, esi
je 0x476d48
mov ecx, dword [0x5c1d10]
push esi
call fcn.004a4110
push esi
mov dword [esi + 0xc], vtable.CLogoGUI.0
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d14]
test esi, esi
je 0x476d62
mov ecx, esi
call fcn.00476410
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d10]
test esi, esi
je 0x476d7c
mov ecx, esi
call fcn.004a4030
push esi
call fcn.004b05b7
add esp, 4
mov esi, dword [0x5c1d20]
test esi, esi
je 0x476dac
mov ecx, esi
call fcn.004895f0
push esi
call fcn.004b05b7
add esp, 4
jmp 0x476dac
push 0x10
push str.Floria
push str.Cannot_initialize_system__please_reinstall
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [0x5c1d24]
test esi, esi
je 0x476de2
cmp dword [esi + 0x14], 8
jb 0x476dc6
push dword [esi]
call fcn.004b05b7
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call fcn.004b05b7
add esp, 4
mov eax, dword [0x5c1d08]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [0x5c1d08]
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004b0e84
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push str.Spellarium3
push str.Cannot_initialize_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004b527c
int3