{"name": "PDC_scr_open", "code": "__int64 __fastcall PDC_scr_open ( int @@a1@@ , const char * * @@a2@@ ) { __int64 result ; const char * v3 ; const char * v4 ; __int64 v5 ; __int64 v6 ; const char * v7 ; __int64 v8 ; const char * v9 ; __int64 v10 ; __int64 v11 ; int v12 ; int v13 ; const char * v14 ; char v15 ; char v16 ; char v17 ; char v18 ; char v19 ; char v20 ; const char * v21 ; _DWORD * v22 ; _DWORD * v23 ; const char * nptr ; const char * nptra ; char * @@v26@@ ; char * @@v27@@ ; char * @@v28@@ ; int i ; int j ; ptr = calloc ( Number , Number ) ; if ( ! ptr ) return Number ; pdc_own_screen = pdc_screen == Number ; if ( ! pdc_screen ) { if ( ( int ) SDL_Init ( Number L ) < Number ) { v3 = ( const char * ) SDL_GetError ( ) ; fprintf ( stderr , String , v3 ) ; return Number ; } atexit ( ( void ( * ) ( void ) ) & SDL_Quit ) ; } if ( ! pdc_font ) { @@v28@@ = getenv ( String ) ; if ( @@v28@@ ) v4 = @@v28@@ ; else v4 = String ; v5 = SDL_RWFromFile ( v4 , String ) ; pdc_font = SDL_LoadBMP_RW ( v5 , Number L ) ; } if ( ! pdc_font ) { v6 = SDL_RWFromMem ( & deffont , Number L ) ; pdc_font = SDL_LoadBMP_RW ( v6 , Number L ) ; } if ( pdc_font ) { * ( ( _BYTE * ) ptr + Number ) = * * ( _QWORD * * ) ( pdc_font + Number ) == Number L ; if ( ! * ( ( _BYTE * ) ptr + Number ) && ! pdc_back ) { @@v27@@ = getenv ( String ) ; if ( @@v27@@ ) v7 = @@v27@@ ; else v7 = String ; v8 = SDL_RWFromFile ( v7 , String ) ; pdc_back = SDL_LoadBMP_RW ( v8 , Number L ) ; } if ( * ( ( _BYTE * ) ptr + Number ) || ! pdc_back && pdc_own_screen ) { * ( ( _BYTE * ) ptr + Number ) = Number ; } else { * ( ( _BYTE * ) ptr + Number ) = Number ; * ( ( _WORD * ) ptr + Number ) = Number ; * ( ( _WORD * ) ptr + Number ) = Number ; } pdc_fheight = * ( _DWORD * ) ( pdc_font + Number ) / Number ; pdc_fwidth = * ( _DWORD * ) ( pdc_font + Number ) / Number ; if ( ! * ( ( _BYTE * ) ptr + Number ) ) pdc_flastc = * * * ( _DWORD * * * ) ( pdc_font + Number ) - Number ; if ( pdc_own_screen && ! pdc_icon ) { @@v26@@ = getenv ( String ) ; if ( @@v26@@ ) v9 = @@v26@@ ; else v9 = String ; v10 = SDL_RWFromFile ( v9 , String ) ; pdc_icon = SDL_LoadBMP_RW ( v10 , Number L ) ; if ( ! pdc_icon ) { v11 = SDL_RWFromMem ( & deficon , Number L ) ; pdc_icon = SDL_LoadBMP_RW ( v11 , Number L ) ; } if ( pdc_icon ) SDL_WM_SetIcon ( pdc_icon , Number L ) ; } if ( pdc_own_screen ) { nptr = getenv ( String ) ; if ( nptr ) v12 = atoi ( nptr ) ; else v12 = Number ; pdc_sheight = pdc_fheight * v12 ; nptra = getenv ( String ) ; if ( nptra ) v13 = atoi ( nptra ) ; else v13 = Number ; pdc_swidth = pdc_fwidth * v13 ; pdc_screen = SDL_SetVideoMode ( ( unsigned int ) ( pdc_fwidth * v13 ) , ( unsigned int ) pdc_sheight , Number L , Number L ) ; } else { if ( ! pdc_sheight ) pdc_sheight = * ( _DWORD * ) ( pdc_screen + Number ) - pdc_yoffset ; if ( ! pdc_swidth ) pdc_swidth = * ( _DWORD * ) ( pdc_screen + Number ) - pdc_xoffset ; } if ( pdc_screen ) { if ( * ( ( _BYTE * ) ptr + Number ) ) PDC_retile ( ) ; for ( i = Number ; i <= Number ; ++ i ) { if ( ( i & Number ) != Number ) v15 = Number ; else v15 = Number ; pdc_color [ Number * i ] = v15 ; if ( ( i & Number ) != Number ) v16 = Number ; else v16 = Number ; pdc_color [ Number * i + Number ] = v16 ; if ( ( i & Number ) != Number ) v17 = Number ; else v17 = Number ; pdc_color [ Number * i + Number ] = v17 ; if ( ( i & Number ) != Number ) v18 = Number ; else v18 = Number ; pdc_color [ Number * i + Number ] = v18 ; if ( ( i & Number ) != Number ) v19 = Number ; else v19 = Number ; pdc_color [ Number * i + Number ] = v19 ; if ( ( i & Number ) != Number ) v20 = Number ; else v20 = Number ; pdc_color [ Number * i + Number ] = v20 ; } for ( j = Number ; j <= Number ; ++ j ) pdc_mapped [ j ] = SDL_MapRGB ( * ( _QWORD * ) ( pdc_screen + Number ) , ( unsigned __int8 ) pdc_color [ Number * j ] , ( unsigned __int8 ) pdc_color [ Number * j + Number ] , ( unsigned __int8 ) pdc_color [ Number * j + Number ] ) ; SDL_EnableUNICODE ( Number L ) ; PDC_mouse_set ( ) ; if ( pdc_own_screen ) { if ( @@a1@@ ) v21 = * @@a2@@ ; else v21 = String ; PDC_set_title ( v21 ) ; } v22 = ptr ; v22 [ Number ] = PDC_get_rows ( ) ; v23 = ptr ; v23 [ Number ] = PDC_get_columns ( ) ; * ( ( _DWORD * ) ptr + Number ) = Number ; * ( ( _BYTE * ) ptr + Number ) = Number ; PDC_reset_prog_mode ( ) ; result = Number L ; } else { v14 = ( const char * ) SDL_GetError ( ) ; fprintf ( stderr , String , v14 ) ; result = Number ; } } else { fwrite ( String , Number , Number , stderr ) ; result = Number ; } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char *"}, "location": "r64"}, {"n": "v28", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v27", "t": {"T": 3, "t": "char"}, "location": "s40"}, {"n": "v26", "t": {"T": 3, "t": "char"}, "location": "s48"}]}
{"name": "PDC_retile", "code": "__int64 PDC_retile ( ) { __int64 @@result@@ ; __int16 @@j@@ ; __int16 @@i@@ ; if ( pdc_tileback ) SDL_FreeSurface ( pdc_tileback ) ; pdc_tileback = SDL_DisplayFormat ( pdc_screen ) ; @@result@@ = pdc_back ; if ( pdc_back ) { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( pdc_tileback + Number ) ; @@i@@ += * ( _DWORD * ) ( pdc_back + Number ) ) { for ( @@j@@ = Number ; @@j@@ < * ( _DWORD * ) ( pdc_tileback + Number ) ; @@j@@ += * ( _DWORD * ) ( pdc_back + Number ) ) SDL_UpperBlit ( pdc_back , Number L , pdc_tileback , & @@j@@ ) ; } @@result@@ = SDL_UpperBlit ( pdc_tileback , Number L , pdc_screen , Number L ) ; } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "i", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s6"}, {"n": "j", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s8"}]}