{"name": "_Z22usbprog_flash_firmwareP15usbprog_contextPc", "code": "__int64 __fastcall usbprog_flash_firmware ( __int64 @@a1@@ , const char * @@a2@@ ) { __int64 result ; char @@v3@@ ; int v4 ; struct stat @@v5@@ ; void * @@ptr@@ ; __off_t @@v7@@ ; FILE * @@stream@@ ; unsigned int @@v9@@ ; @@stream@@ = fopen ( @@a2@@ , String ) ; if ( @@stream@@ ) { stat ( @@a2@@ , & @@v5@@ ) ; @@v7@@ = @@v5@@ . st_size ; @@ptr@@ = malloc ( @@v5@@ . st_size + Number ) ; @@v9@@ = Number ; while ( ! feof ( @@stream@@ ) ) { @@v3@@ = fgetc ( @@stream@@ ) ; v4 = @@v9@@ ++ ; * ( ( _BYTE * ) @@ptr@@ + v4 ) = @@v3@@ ; } usbprog_flash_buffer ( @@a1@@ , @@ptr@@ , @@v9@@ ) ; free ( @@ptr@@ ) ; fclose ( @@stream@@ ) ; sprintf ( ( char * ) ( @@a1@@ + Number ) , String , String ) ; result = Number L ; } else { sprintf ( ( char * ) ( @@a1@@ + Number ) , String , String ) ; * ( _QWORD * ) @@a1@@ = String ; result = Number ; } return result ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s16"}, {"n": "v5", "t": {"T": 6, "n": "struct stat", "l": [{"T": 4, "n": "st_dev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_ino", "t": "__ino_t", "s": 8}, {"T": 4, "n": "st_nlink", "t": "__nlink_t", "s": 8}, {"T": 4, "n": "st_mode", "t": "__mode_t", "s": 4}, {"T": 4, "n": "st_uid", "t": "__uid_t", "s": 4}, {"T": 4, "n": "st_gid", "t": "__gid_t", "s": 4}, {"T": 4, "n": "__pad0", "t": "int", "s": 4}, {"T": 4, "n": "st_rdev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_size", "t": "__off_t", "s": 8}, {"T": 4, "n": "st_blksize", "t": "__blksize_t", "s": 8}, {"T": 4, "n": "st_blocks", "t": "__blkcnt_t", "s": 8}, {"T": 4, "n": "st_atim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_mtim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_ctim", "t": "timespec", "s": 16}, {"T": 4, "n": "__unused", "t": "__syscall_slong_t[3]", "s": 24}]}, "location": "s176"}, {"n": "v7", "t": {"T": 1, "n": "__off_t", "s": 8}, "location": "s24"}, {"n": "ptr", "t": {"T": 3, "t": "void"}, "location": "s32"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}