Function at 0x401670
Capabilities:
Check if file exists
Check mutex on windows
Get disk size
Get file attributes
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5868e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc68
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, 1
mov dword [0x6e2950], 0x6e2958
mov dword [0x710074], 0x402530
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [0x5ce784], eax
mov dword [ebp - 0x18], eax
jle 0x40174b
dec edi
lea edx, [ebx + 4]
mov dword [ebp - 0x10], edi
mov eax, dword [edx]
mov edi, 0x5a4990
mov esi, eax
mov ecx, 4
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4016ea
mov dword [0x5cd880], ebx
jmp 0x401739
mov edi, str._nomovie
mov esi, eax
mov ecx, 9
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401705
mov dword [ebp - 0x14], 1
jmp 0x401739
mov edi, str._noaudio
mov esi, eax
mov ecx, 9
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401720
mov dword [ebp - 0x20], 1
jmp 0x401739
mov esi, eax
mov edi, str._log
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401739
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
add edx, 4
dec eax
mov dword [ebp - 0x10], eax
jne 0x4016ce
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
push edi
mov ecx, 0x712008
call fcn.0055a730
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp ecx, eax
mov dword [0x5cdf54], eax
mov dword [0x5cdf58], eax
je 0x40176f
call fcn.00558870
mov ecx, dword [str.Angel:_1588___Apr_14_1999_15:07:10]
mov edx, dword [str.Midtown_Madness_]
push ecx
push edx
push str._s____s
call fcn.005585e0
mov eax, dword [0x5a47c4]
add esp, 0xc
test al, 2
mov esi, str.geom
jne 0x40179d
mov esi, 0x5d44ec
test al, 4
mov edx, str.bounds
jne 0x4017ab
mov edx, 0x5d44f0
test al, 1
mov ecx, str.textures
jne 0x4017b9
mov ecx, 0x5d44f4
cmp eax, 0xffffffff
mov eax, str._PAGING:_As_specified_in_UI
je 0x4017c8
mov eax, str._PAGING:___s__s__s_
push esi
push edx
push ecx
push eax
call fcn.00558640
add esp, 0x10
push str.MidtownMadnessMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x4017fa
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40181e
mov eax, dword [str.Midtown_Madness_]
push 0x10
push eax
push 0xc9
call fcn.0050e090
add esp, 4
push eax
push 0
call esi
push 0
call fcn.00558740
add esp, 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
shr edx, 0x14
shr eax, 0x14
push edx
push eax
shr ecx, 0x14
push ecx
push str.Avail_Phys:__dM__Avail_Page:__dM__Avail_addr:__dM
call fcn.005585e0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
add edx, eax
add esp, 0x10
cmp edx, 0x5000000
jae 0x401886
mov ecx, dword [str.Midtown_Madness_]
push 0x10
push ecx
push 0xca
call fcn.0050e090
add esp, 4
push eax
push 0
call esi
push 0
call fcn.00558740
add esp, 4
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4018cf
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
cmp eax, 0x20000
jae 0x4018cf
mov ecx, dword [str.Midtown_Madness_]
push 0
push ecx
push 0xcb
call fcn.0050e090
add esp, 4
push eax
push 0
call esi
push ebx
push edi
call fcn.00556df0
add esp, 8
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
test eax, eax
jne 0x4019ed
push str.movie...
call fcn.005585e0
add esp, 4
lea edx, [ebp - 0x474]
xor ebx, ebx
push str.logos.avi
push 0x400
push edx
call fcn.004024d0
add esp, 0xc
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401985
push 0x5a4a70
push str.InstalledFrom
lea ecx, [ebp - 0x474]
push 0x400
push ecx
call fcn.0048f1b0
mov edi, str.:logos.avi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x473]
mov eax, ecx
mov esi, edi
mov edi, edx
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, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40198a
mov ebx, 1
test ebx, ebx
je 0x4019ed
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call edi
push 0xa
push esi
mov dword [0x5cd428], eax
call edi
push esi
push 0
mov dword [0x5cd42c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [str.Midtown_Madness_]
push edx
call fcn.005556d0
add esp, 4
lea eax, [ebp - 0x474]
push eax
call fcn.00556b90
add esp, 4
mov dword [0x5cd428], 0x280
mov dword [0x5cd42c], 0x1e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [str.Midtown_Madness_]
push ecx
push edx
push eax
call fcn.005560a0
add esp, 0xc
push str.dxiInit_returned.
call fcn.005585e0
mov ecx, dword [0x710aa8]
add esp, 4
push ecx
call sub.IMM32.dll_ImmGetContext
test eax, eax
je 0x401a3d
mov edx, dword [0x710aa8]
push 0
push edx
mov dword [0x5d3e64], 1
call sub.IMM32.dll_ImmAssociateContext
mov dword [0x5d44a8], eax
mov eax, dword [0x6e28b4]
push 1
neg eax
sbb eax, eax
mov ecx, 0x6f29f8
and eax, 0xa00000
mov dword [0x70f010], 0x5a4aa4
add eax, 0x3200000
mov dword [0x6e2950], 0x6e28b0
push eax
call fcn.0050f370
lea ecx, [ebp - 0x74]
mov dword [0x6684cc], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x6c]
cmp eax, 0x40
jb 0x401ac8
call fcn.004dcc00
mov esi, eax
call fcn.004dcbf0
or esi, eax
call fcn.004dcbe0
or esi, eax
call fcn.004dcbb0
or esi, eax
call fcn.004dcba0
or esi, eax
call fcn.004dcb90
or esi, eax
mov word [0x6684d0], 0x20
mov dword [0x6684cc], esi
jmp 0x401b47
cmp eax, 0x30
jb 0x401b0a
call fcn.004dcba0
mov esi, eax
call fcn.004dcbb0
not eax
and esi, eax
call fcn.004dcc00
or esi, eax
call fcn.004dcbf0
or esi, eax
call fcn.004dcbe0
or esi, eax
call fcn.004dcb90
or esi, eax
mov word [0x6684d0], 0x10
mov dword [0x6684cc], esi
jmp 0x401b47
call fcn.004dcb90
mov esi, eax
call fcn.004dcba0
not eax
and esi, eax
call fcn.004dcbb0
not eax
and esi, eax
call fcn.004dcc00
or esi, eax
call fcn.004dcbf0
or esi, eax
call fcn.004dcbe0
or esi, eax
mov word [0x6684d0], 8
mov dword [0x6684cc], esi
mov eax, 1
mov edi, 0x5d44f8
mov dword [0x6683c8], eax
mov dword [0x6683ec], eax
mov dword [0x6683f8], eax
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [0x6684e6], 0
mov edx, ecx
mov esi, edi
mov edi, 0x6685d0
mov byte [0x6685ae], 0
shr ecx, 2
mov dword [0x6684c0], 0x3f800000
mov dword [0x6684c8], 0x3f000000
mov dword [0x6684c4], 0
mov dword [0x668390], 2
mov dword [0x6683d8], 0x3ea8f5c3
mov dword [0x6683e0], 0x3f800000
mov dword [0x6683e4], 0x40e00000
mov dword [0x6683a8], ebx
mov dword [0x6683dc], 0x3f800000
mov dword [0x6683bc], ebx
mov dword [0x6683e8], 0x3f400000
mov dword [0x6683f4], ebx
mov dword [0x668398], ebx
mov dword [0x6684a8], ebx
mov dword [0x6684ac], ebx
mov dword [0x6684a0], ebx
mov dword [0x6683f0], ebx
mov dword [0x6684b0], ebx
mov dword [0x6684b4], 0x64
mov byte [0x668670], bl
mov byte [0x668671], bl
mov byte [0x668672], bl
mov byte [0x668673], bl
mov eax, dword [str.high]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push str.Running_with__s_priority_class.
rep movsb byte es:[edi], byte [esi]
call fcn.00558640
mov ecx, dword [0x5a47e0]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
or ecx, 0xffffffff
mov edi, 0x5a4b08
xor eax, eax
mov dword [0x710078], ecx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [0x6683b4]
mov edx, ecx
mov esi, edi
mov edi, 0x5d44b0
mov dword [0x67a9b4], 0xc19e6666
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40244f
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov ecx, 0x5d4298
call fcn.00558280
mov ecx, 0x6f29f8
call fcn.0050f3e0
push str.Module_init
call fcn.0055a480
add esp, 4
call fcn.00544970
push str.AGI_startup
call fcn.0055a480
mov eax, dword [str.Midtown_Madness_]
add esp, 4
push edi
push esi
push eax
call fcn.00510600
add esp, 0xc
test eax, eax
je 0x401d49
call fcn.005106c0
call fcn.005449e0
mov eax, dword [0x6684a4]
test eax, eax
jne 0x401d1b
push str.Cant_start_UI__this_should_never_happen.
call fcn.005588f0
add esp, 4
mov ecx, dword [str.Midtown_Madness_]
push 0x10
push ecx
push 0xcc
call fcn.0050e090
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x6684a4], 0
jmp 0x402440
call fcn.0055a510
push str.ARTS_Init
call fcn.0055a480
add esp, 4
push 0x28c
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x401d7d
mov ecx, eax
call fcn.0050f7c0
mov ecx, dword [0x6f2a3c]
push edi
push esi
push 0x5a4b60
mov dword [ebp - 4], 0xffffffff
call fcn.0050fb00
mov eax, dword [0x6f2ac8]
test eax, eax
jne 0x401fbb
test ebx, ebx
jne 0x401de1
lea edx, [ebp - 0x874]
push 0x400
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x874]
push 0x5c
push eax
call fcn.00566800
add esp, 8
test eax, eax
je 0x401dd9
mov byte [eax], bl
lea ebx, [ebp - 0x874]
jmp 0x401dde
mov ebx, 0x5a4b64
mov dword [ebp - 0x1c], ebx
push ebx
mov ecx, 0x70f008
call fcn.00541f40
mov esi, eax
test esi, esi
je 0x401eb7
push 0x2e
push esi
call fcn.00566800
add esp, 8
test eax, eax
je 0x401ea2
push 0x5a4b68
push eax
call fcn.00581a00
add esp, 8
test eax, eax
jne 0x401ea2
push 4
push str.TEST
push esi
call fcn.00583e50
add esp, 0xc
test eax, eax
je 0x401ea2
push esi
push ebx
lea ecx, [ebp - 0xc74]
push 0x5a4b74
push ecx
call fcn.00566480
add esp, 0x10
lea edx, [ebp - 0xc74]
push 0x5a4b7c
push edx
call fcn.00540e70
mov edi, eax
add esp, 8
test edi, edi
je 0x401ea2
push esi
push str.Adding__s_in_autosearch...
call fcn.005585e0
add esp, 8
push 0x24
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov dword [ebp - 4], 1
je 0x401e91
push edi
mov ecx, eax
call fcn.005421d0
mov dword [ebp - 4], 0xffffffff
mov dword [0x5ce784], 0
push esi
mov ecx, 0x70f008
call fcn.00542080
mov esi, eax
test esi, esi
jne 0x401df6
push 0x5a4cfc
push 0x5a4ba0
call fcn.00540e70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401fbb
mov eax, dword [0x7064e8]
test eax, eax
je 0x401efb
dec eax
mov dword [0x7064e8], eax
mov eax, dword [eax*4 + 0x7024d8]
push eax
call fcn.0050f580
mov eax, dword [0x7064e8]
add esp, 4
test eax, eax
jne 0x401edc
mov ecx, 0x7064d8
call fcn.00559a70
push 1
push 0x7064e8
mov ecx, ebx
call fcn.00540d50
mov esi, dword [0x7064e8]
push 0x40
mov ecx, 0x7064d8
call fcn.00559a00
cmp esi, 0x800
jle 0x401f46
push str.ct___agiLibMax
push 0x1a
push str.c:mm_src_agi_agilib.h
push str.Assertion_failed___s__d_:__s
call fcn.00558720
add esp, 0x10
mov eax, esi
xor edi, edi
test esi, esi
mov dword [0x7064e8], eax
jle 0x401f7b
mov esi, 0x7024d8
push 0x58
call fcn.0050f560
mov dword [esi], eax
add esp, 4
mov dword [esi + 0x2000], 0
mov eax, dword [0x7064e8]
inc edi
add esi, 4
cmp edi, eax
jl 0x401f58
xor edi, edi
test eax, eax
jle 0x401fb3
mov esi, 0x7024d8
mov ecx, dword [esi]
push ebx
call fcn.00539090
mov eax, dword [esi]
inc edi
push edi
push eax
mov ecx, 0x7064d8
call fcn.00559b30
mov dword [esi + 0x2000], 0
mov eax, dword [0x7064e8]
add esi, 4
cmp edi, eax
jl 0x401f86
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
call fcn.0055a510
mov edi, dword [0x5ce784]
xor esi, esi
xor eax, eax
cmp edi, esi
sete al
mov dword [0x7024d0], eax
mov eax, dword [0x6f2a3c]
mov edi, 1
push str.Audio_manager
mov dword [eax + 0x280], edi
call fcn.0055a480
add esp, 4
call fcn.00402550
cmp dword [ebp - 0x20], esi
je 0x40200a
mov ecx, dword [0x67b5f0]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004dbdf0
call fcn.0055a510
push str.GameInput
call fcn.0055a480
add esp, 4
push 0x240
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, 2
cmp eax, esi
mov dword [ebp - 4], ebx
je 0x40203f
mov ecx, eax
call fcn.004d36a0
mov ecx, dword [0x67b524]
mov dword [ebp - 4], 0xffffffff
call fcn.004d3980
mov ecx, dword [0x668398]
push ecx
mov ecx, dword [0x67b524]
call fcn.004d4bf0
call fcn.0055a510
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x10], esi
call fcn.004824e0
mov eax, dword [0x5a47c4]
mov dword [ebp - 4], 3
cmp eax, 0xffffffff
je 0x40208e
mov dword [0x711b30], eax
jmp 0x4020b1
cmp dword [0x6684a4], esi
jne 0x40209e
mov dword [0x711b30], edi
jmp 0x4020b1
mov edx, dword [0x668680]
neg edx
sbb edx, edx
and edx, 3
mov dword [0x711b30], edx
push str.Cache_and_pager.
call fcn.0055a480
mov eax, dword [0x711b30]
add esp, 4
cmp eax, esi
je 0x4020f9
push str.CACHE
push 0x800
push 0x100000
mov ecx, 0x711ac8
call fcn.00558940
push str.TEXCACHE
push 0x100
push 0x200000
mov ecx, 0x702478
call fcn.00558940
push esi
push 0x40
mov ecx, 0x711b08
call fcn.0055a1d0
call fcn.0055a510
lea ecx, [ebp - 0x33c]
call fcn.00482970
mov eax, dword [0x6684a4]
cmp eax, esi
jne 0x4021d4
push esi
push esi
push str.title_screen
lea ecx, [ebp - 0x33c]
call fcn.004826d0
mov al, byte [0x5d44dc]
test al, al
je 0x402146
push esi
push 0xcd
jmp 0x402163
mov al, byte [0x6685ae]
test al, al
je 0x40215d
mov ecx, dword [0x67b5f0]
push edi
push 3
call fcn.004dbf90
push esi
push 0xce
call fcn.0050e090
add esp, 4
lea ecx, [ebp - 0x33c]
push eax
call fcn.00482800
push 0x35830
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x24], eax
cmp eax, esi
mov byte [ebp - 4], 4
je 0x402198
mov ecx, eax
call fcn.00403830
mov esi, eax
mov ecx, dword [0x6f2a3c]
push esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], esi
call fcn.00510de0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [0x5d44d8]
mov edi, esi
push ecx
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00405410
mov dword [0x5d44d8], 1
jmp 0x4022b8
cmp eax, edi
jne 0x4022b5
call fcn.00401250
test eax, eax
je 0x4021f1
push 0x3f5ccccd
push 0x3f12680a
jmp 0x4021fb
push 0x3f733333
push 0x3cbfb15b
push 0x5d3e68
lea ecx, [ebp - 0x33c]
call fcn.004826d0
push str.GameManager
call fcn.0055a480
add esp, 4
push esi
push 0xcf
call fcn.0050e090
add esp, 4
lea ecx, [ebp - 0x33c]
push eax
call fcn.00482800
mov edx, dword [0x6684c0]
mov ecx, dword [0x67b5f0]
push edx
call fcn.004dc0f0
mov eax, dword [0x6684c8]
mov ecx, dword [0x67b5f0]
push eax
call fcn.004dc130
mov al, byte [0x6685ae]
test al, al
je 0x40226b
mov ecx, dword [0x67b5f0]
push edi
push ebx
call fcn.004dbf90
push 0x54
call fcn.0050f560
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, esi
mov byte [ebp - 4], 5
je 0x402289
mov ecx, eax
call fcn.00402b60
mov esi, eax
mov ecx, dword [0x6f2a3c]
push esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], esi
call fcn.00510de0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
mov edi, esi
mov dword [0x5d44d8], ebx
mov dword [ebp - 0x14], edi
call fcn.0055a510
jmp 0x4022b8
mov edi, dword [ebp - 0x14]
mov eax, dword [0x7021c4]
mov ecx, dword [0x6f2a3c]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x33c]
push ebx
call fcn.00482880
or esi, 0xffffffff
lea ecx, [ebp - 0x33c]
mov dword [ebp - 4], esi
call fcn.00482630
mov ecx, 0x6e28b0
mov dword [0x6684a4], esi
mov dword [0x6683b4], ebx
call fcn.0050f050
mov eax, dword [0x6e28c0]
mov ecx, dword [0x6e28b8]
push eax
push ecx
call fcn.00402480
add esp, 8
call fcn.0055a510
mov eax, dword [0x6e28c0]
mov ecx, 0x5d4298
shr eax, 0xa
push eax
call fcn.00558290
sub esp, 8
fstp qword [esp]
push str._Load_time___f_seconds___dK_allocated.
call fcn.005585e0
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp eax, ebx
je 0x402357
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
push ebx
push ecx
push edx
call fcn.00401520
add esp, 0xc
mov ecx, 0x711b08
call fcn.0055a280
mov ecx, dword [0x67b5f0]
push esi
push esi
call fcn.004dbdf0
mov ecx, 0x6e28b0
call fcn.0050f050
cmp edi, ebx
je 0x402395
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp dword [0x711b30], ebx
je 0x4023b1
mov ecx, 0x702478
call fcn.00559030
mov ecx, 0x711ac8
call fcn.00559030
mov ecx, dword [0x67b524]
cmp ecx, ebx
je 0x4023c1
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [0x67b5f0]
cmp ecx, ebx
je 0x4023d1
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [0x6f2ac8], ebx
jne 0x4023fe
mov eax, dword [0x70ee70]
cmp eax, 1
jle 0x4023fe
mov ecx, dword [eax*4 + 0x70ee74]
cmp ecx, ebx
je 0x4023f9
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [0x70ee70]
cmp eax, 1
jg 0x4023e3
mov ecx, dword [0x6f2a3c]
cmp ecx, ebx
je 0x40240e
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.005106c0
cmp dword [0x5d3e64], ebx
je 0x402428
call fcn.00555d90
push ebx
push ebx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
call fcn.005449e0
call fcn.00559f70
call fcn.005594e0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x6683b4]
test eax, eax
je 0x401cb4
xor ebx, ebx
mov ecx, 0x6f29f8
call fcn.0050f410
call fcn.00555d90
push ebx
push ebx
push ebx
call fcn.005557b0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret