Function at 0x48ebb0
Capabilities:
Set registry value
Suspend thread
Terminate process

Disassembly:
mov al, byte [0x4f8ea0]
sub esp, 0x11c
test al, al
jne 0x48f1bb
push edi
push esi
push ebp
push ebx
mov bl, 1
mov byte [0x4f8ea0], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x6087ac]
je 0x48ebe9
mov eax, dword [0x6087b4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x4f5908
mov byte [0x4f8e24], bl
call fcn.0048fa80
add esp, 4
push str._____Exiting_program
call fcn.0048fa80
add esp, 4
call fcn.00499030
call fcn.0049ada0
mov edx, dword [0x4f8e1c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [0x4d4bbc], 4
jne 0x48ec84
mov eax, dword [0x4f8e1c]
mov byte [0x6087e8], bl
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
mov dword [0x6087d0], eax
jne 0x48ec84
mov ecx, dword [0x4f8e1c]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x48ec84
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [0x6087c0], eax
sub edx, eax
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [0x6087c4], ecx
mov dword [0x6087c8], edx
mov dword [0x6087cc], eax
call fcn.0049e0d0
mov esi, dword [0x4d3e38]
mov ecx, dword [0x4d6004]
mov al, byte [0x4f8e6c]
neg esi
shl esi, 0x1f
add esi, ecx
test al, al
je 0x48f08b
push str.WIN:_Writing_registry
call fcn.0048fa80
mov al, byte [0x4d4bbc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
cmp al, 4
je 0x48ecc9
cmp al, 5
jne 0x48ecfe
mov ecx, dword [0x4f9afc]
push str.System
and ecx, 0xff
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Last_VideoMode
push eax
call ebp
mov ecx, dword [0x4f9b34]
push str.System
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Free_Scale
push eax
call ebp
mov ecx, dword [0x4d3e34]
push str.System
and ecx, 0xff
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Music_Active
push eax
call ebp
mov ecx, dword [0x4d3e40]
push str.System
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Music_Volume
push eax
call ebp
mov ecx, dword [0x4d3e30]
push str.System
and ecx, 0xff
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Sound_FX_Active
push eax
call ebp
mov ecx, dword [0x4d3e3c]
push str.System
mov dword [esp + 0x14], ecx
call fcn.004935f0
mov eax, dword [0x4f8e40]
add esp, 4
lea edx, [esp + 0x10]
push 4
push edx
push 3
push 0
push str.Sound_FX_Volume
push eax
call ebp
push str.System
mov dword [esp + 0x14], esi
call fcn.004935f0
add esp, 4
lea ecx, [esp + 0x10]
push 4
push ecx
push 3
push 0
mov edx, dword [0x4f8e40]
push str.Sound_Mixing_Options
push edx
call ebp
mov eax, dword [0x4d6008]
push str.System
mov dword [esp + 0x14], eax
call fcn.004935f0
mov edx, dword [0x4f8e40]
add esp, 4
lea ecx, [esp + 0x10]
push 4
push ecx
push 3
push 0
push str.Sound_Mixing_Rate
push edx
call ebp
mov eax, dword [0x4d3e04]
push str.System
mov dword [esp + 0x14], eax
call fcn.004935f0
mov edx, dword [0x4f8e40]
add esp, 4
lea ecx, [esp + 0x10]
push 4
push ecx
push 3
push 0
push 0x4d44d8
push edx
call ebp
mov eax, dword [0x4f8e88]
push str.System
mov dword [esp + 0x14], eax
call fcn.004935f0
mov edx, dword [0x4f8e40]
add esp, 4
lea ecx, [esp + 0x10]
push 4
push ecx
push 3
push 0
push str.Window_Snap_Presets
push edx
call ebp
mov eax, dword [0x4f8e88]
push str.System
lea esi, [eax*8]
call fcn.004935f0
mov ecx, dword [0x4f8e40]
add esp, 4
push esi
push 0x4f8910
push 3
push 0
push str.Window_Snap_Data
push ecx
call ebp
mov al, byte [0x6087e8]
test al, al
je 0x48f030
mov ebx, str.System
mov edx, ebx
test edx, edx
jne 0x48eefa
mov ebx, 0x4f8ec4
mov edx, dword [0x4f8e40]
test edx, edx
je 0x48ef42
mov esi, 0x4f8ec8
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48ef2f
test cl, cl
je 0x48ef2b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48ef2f
add eax, 2
add esi, 2
test cl, cl
jne 0x48ef0b
xor eax, eax
jmp 0x48ef34
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48f017
mov edx, dword [0x4f8e40]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [reloc.WSOCK32.dll_accept], 0x80000001
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4f8ec8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
je 0x48ef79
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x13
push 0x4ca5d0
push ebx
call fcn.004b9620
add esp, 0xc
test eax, eax
jne 0x48ef9a
mov dword [reloc.WSOCK32.dll_accept], 0x80000002
add ebx, 0x13
cmp byte [ebx], 0x5c
jne 0x48efc4
lea edi, [ebx + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4f8548
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x48efeb
mov eax, dword [0x4cd190]
mov ecx, dword [str.Jazz_Jackrabbit_2]
mov edx, dword [str.Epic_MegaGames]
push ebx
push eax
push ecx
push edx
push str.Software_s_s_s_s
push 0x4f8548
call fcn.004b77e0
add esp, 0x18
lea eax, [esp + 0x10]
mov ecx, dword [reloc.WSOCK32.dll_accept]
push eax
push 0x4f8e40
push 0
push 0xf003f
push 0
push 0x4f5908
push 0
push 0x4f8548
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [0x4f8e40]
push 0x2c
push 0x6087c0
push 3
push 0
push str.Window_Position
push edx
call ebp
mov eax, dword [0x4cd190]
mov ecx, dword [str.Jazz_Jackrabbit_2]
mov edx, dword [str.Epic_MegaGames]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push str.Software_s_s_s
push eax
call fcn.004b77e0
add esp, 0x14
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4f5908
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00494670
mov edx, dword [0x4f8a38]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x500148]
xor edi, edi
cmp eax, edi
je 0x48f0c9
push str.SPY:_Closing_spy
call fcn.0048fa80
mov eax, dword [0x500148]
add esp, 4
cmp eax, edi
je 0x48f0c9
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4f8e44]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push edi
push eax
call esi
test eax, eax
je 0x48f0f4
mov ecx, dword [0x4f8e44]
push 0x400
push edi
push ecx
call esi
test eax, eax
jne 0x48f0e1
push str.WIN:_Closing_window
call fcn.0048fa80
mov eax, dword [0x4f8e1c]
add esp, 4
cmp eax, edi
je 0x48f111
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x4f8e44]
cmp eax, edi
je 0x48f121
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x4f8e14]
cmp eax, edi
je 0x48f131
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x4f8e40]
cmp eax, edi
je 0x48f141
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4f8e5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x48f153
push eax
call esi
call fcn.0049df70
mov eax, dword [0x6087a8]
cmp eax, edi
je 0x48f16e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x6087a8], edi
mov eax, dword [0x4f8e60]
cmp eax, edi
je 0x48f186
push eax
call fcn.0049a800
add esp, 4
mov dword [0x4f8e60], edi
call fcn.004987a0
push str.WIN:_All_done__Have_a_nice_day
call fcn.0048fa80
mov eax, dword [0x6087b4]
add esp, 4
cmp eax, edi
je 0x48f1a4
push eax
call esi
mov eax, dword [0x4f8e70]
cmp eax, edi
je 0x48f1b0
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esp, 0x11c
ret