Contract: BTCGateway
Etherscan label: bridge
Tag: Ren: BTC Gateway
Malicious: no
Decompiled opcodes:
PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x0010 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x097c DUP1 PUSH2 0x0020 PUSH1 0x00 CODECOPY PUSH1 0x00 RETURN UNKNOWN_0xfe PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x04 CALLDATASIZE LT PUSH2 0x0070 JUMPI PUSH1 0x00 CALLDATALOAD PUSH1 0xe0 SHR DUP1 PUSH4 0x8f283970 GT PUSH2 0x004e JUMPI DUP1 PUSH4 0x8f283970 EQ PUSH2 0x015e JUMPI DUP1 PUSH4 0xcf7a1d77 EQ PUSH2 0x0191 JUMPI DUP1 PUSH4 0xd1f57894 EQ PUSH2 0x0250 JUMPI DUP1 PUSH4 0xf851a440 EQ PUSH2 0x0306 JUMPI PUSH2 0x0070 JUMP JUMPDEST DUP1 PUSH4 0x3659cfe6 EQ PUSH2 0x007a JUMPI DUP1 PUSH4 0x4f1ef286 EQ PUSH2 0x00ad JUMPI DUP1 PUSH4 0x5c60da1b EQ PUSH2 0x012d JUMPI JUMPDEST PUSH2 0x0078 PUSH2 0x031b JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x0086 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x0078 PUSH1 0x04 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x009d JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND PUSH2 0x0335 JUMP JUMPDEST PUSH2 0x0078 PUSH1 0x04 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x00c3 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB DUP3 CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x40 DUP2 ADD PUSH1 0x20 DUP3 ADD CALLDATALOAD PUSH5 0x0100000000 DUP2 GT ISZERO PUSH2 0x00ee JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x0100 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x01 DUP4 MUL DUP5 ADD GT PUSH5 0x0100000000 DUP4 GT OR ISZERO PUSH2 0x0122 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x036f JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x0139 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x0142 PUSH2 0x041c JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x016a JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x0078 PUSH1 0x04 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x0181 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP CALLDATALOAD PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND PUSH2 0x0459 JUMP JUMPDEST PUSH2 0x0078 PUSH1 0x04 DUP1 CALLDATASIZE SUB PUSH1 0x60 DUP2 LT ISZERO PUSH2 0x01a7 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB DUP3 CALLDATALOAD DUP2 AND SWAP3 PUSH1 0x20 DUP2 ADD CALLDATALOAD SWAP1 SWAP2 AND SWAP2 DUP2 ADD SWAP1 PUSH1 0x60 DUP2 ADD PUSH1 0x40 DUP3 ADD CALLDATALOAD PUSH5 0x0100000000 DUP2 GT ISZERO PUSH2 0x01db JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x01ed JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x01 DUP4 MUL DUP5 ADD GT PUSH5 0x0100000000 DUP4 GT OR ISZERO PUSH2 0x020f JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST SWAP2 SWAP1 DUP1 DUP1 PUSH1 0x1f ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x00 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP SWAP3 SWAP6 POP PUSH2 0x0513 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x0078 PUSH1 0x04 DUP1 CALLDATASIZE SUB PUSH1 0x40 DUP2 LT ISZERO PUSH2 0x0266 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB DUP3 CALLDATALOAD AND SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH1 0x40 DUP2 ADD PUSH1 0x20 DUP3 ADD CALLDATALOAD PUSH5 0x0100000000 DUP2 GT ISZERO PUSH2 0x0291 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x02a3 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x01 DUP4 MUL DUP5 ADD GT PUSH5 0x0100000000 DUP4 GT OR ISZERO PUSH2 0x02c5 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST SWAP2 SWAP1 DUP1 DUP1 PUSH1 0x1f ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x00 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP SWAP3 SWAP6 POP PUSH2 0x0599 SWAP5 POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x0312 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x0142 PUSH2 0x06d9 JUMP JUMPDEST PUSH2 0x0323 PUSH2 0x0704 JUMP JUMPDEST PUSH2 0x0333 PUSH2 0x032e PUSH2 0x0764 JUMP JUMPDEST PUSH2 0x0789 JUMP JUMPDEST JUMP JUMPDEST PUSH2 0x033d PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x0364 JUMPI PUSH2 0x035f DUP2 PUSH2 0x07d2 JUMP JUMPDEST PUSH2 0x036c JUMP JUMPDEST PUSH2 0x036c PUSH2 0x031b JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x0377 PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x040f JUMPI PUSH2 0x0399 DUP4 PUSH2 0x07d2 JUMP JUMPDEST PUSH1 0x00 DUP4 PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x40 MLOAD SWAP3 ADD SWAP5 POP PUSH1 0x00 SWAP4 POP SWAP1 SWAP2 POP POP DUP1 DUP4 SUB DUP2 DUP6 GAS DELEGATECALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x00 DUP2 EQ PUSH2 0x03f6 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1f NOT PUSH1 0x3f RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x00 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x03fb JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH2 0x0409 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP PUSH2 0x0417 JUMP JUMPDEST PUSH2 0x0417 PUSH2 0x031b JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x00 PUSH2 0x0426 PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x044e JUMPI PUSH2 0x0447 PUSH2 0x0764 JUMP JUMPDEST SWAP1 POP PUSH2 0x0456 JUMP JUMPDEST PUSH2 0x0456 PUSH2 0x031b JUMP JUMPDEST SWAP1 JUMP JUMPDEST PUSH2 0x0461 PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x0364 JUMPI PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB DUP2 AND PUSH2 0x04bf JUMPI PUSH1 0x40 MLOAD PUSH3 0x461bcd PUSH1 0xe5 SHL DUP2 MSTORE PUSH1 0x04 ADD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE PUSH1 0x36 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH2 0x08d7 PUSH1 0x36 SWAP2 CODECOPY PUSH1 0x40 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH32 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f PUSH2 0x04e8 PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB SWAP3 DUP4 AND DUP2 MSTORE SWAP2 DUP5 AND PUSH1 0x20 DUP4 ADD MSTORE DUP1 MLOAD SWAP2 DUP3 SWAP1 SUB ADD SWAP1 LOG1 PUSH2 0x035f DUP2 PUSH2 0x0812 JUMP JUMPDEST PUSH1 0x00 PUSH2 0x051d PUSH2 0x0764 JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ PUSH2 0x0530 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST PUSH2 0x053a DUP4 DUP3 PUSH2 0x0599 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH19 0x32b4b8189c9b1b97383937bc3c9730b236b4b7 PUSH1 0x69 SHL DUP2 MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x13 ADD SWAP1 SHA3 PUSH32 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 PUSH1 0x00 NOT SWAP1 SWAP2 ADD EQ PUSH2 0x0590 JUMPI UNKNOWN_0xfe JUMPDEST PUSH2 0x0417 DUP3 PUSH2 0x0812 JUMP JUMPDEST PUSH1 0x00 PUSH2 0x05a3 PUSH2 0x0764 JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ PUSH2 0x05b6 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0x656970313936372e70726f78792e696d706c656d656e746174696f6e00000000 DUP2 MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x1c ADD SWAP1 SHA3 PUSH32 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc PUSH1 0x00 NOT SWAP1 SWAP2 ADD EQ PUSH2 0x0616 JUMPI UNKNOWN_0xfe JUMPDEST PUSH2 0x061f DUP3 PUSH2 0x0836 JUMP JUMPDEST DUP1 MLOAD ISZERO PUSH2 0x06d5 JUMPI PUSH1 0x00 DUP3 PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND DUP3 PUSH1 0x40 MLOAD DUP1 DUP3 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 DUP1 DUP4 DUP4 JUMPDEST PUSH1 0x20 DUP4 LT PUSH2 0x0662 JUMPI DUP1 MLOAD DUP3 MSTORE PUSH1 0x1f NOT SWAP1 SWAP3 ADD SWAP2 PUSH1 0x20 SWAP2 DUP3 ADD SWAP2 ADD PUSH2 0x0643 JUMP JUMPDEST PUSH1 0x01 DUP4 PUSH1 0x20 SUB PUSH2 0x0100 EXP SUB DUP1 NOT DUP3 MLOAD AND DUP2 DUP5 MLOAD AND DUP1 DUP3 OR DUP6 MSTORE POP POP POP POP POP POP SWAP1 POP ADD SWAP2 POP POP PUSH1 0x00 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 GAS DELEGATECALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x00 DUP2 EQ PUSH2 0x06c2 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1f NOT PUSH1 0x3f RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x00 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x06c7 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP POP SWAP1 POP DUP1 PUSH2 0x0417 JUMPI PUSH1 0x00 DUP1 REVERT JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x00 PUSH2 0x06e3 PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x044e JUMPI PUSH2 0x0447 PUSH2 0x07ad JUMP JUMPDEST PUSH2 0x070c PUSH2 0x07ad JUMP JUMPDEST PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND CALLER PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB AND EQ ISZERO PUSH2 0x075c JUMPI PUSH1 0x40 MLOAD PUSH3 0x461bcd PUSH1 0xe5 SHL DUP2 MSTORE PUSH1 0x04 ADD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE PUSH1 0x32 DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH2 0x08a5 PUSH1 0x32 SWAP2 CODECOPY PUSH1 0x40 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x0333 PUSH2 0x0333 JUMP JUMPDEST PUSH32 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc SLOAD SWAP1 JUMP JUMPDEST CALLDATASIZE PUSH1 0x00 DUP1 CALLDATACOPY PUSH1 0x00 DUP1 CALLDATASIZE PUSH1 0x00 DUP5 GAS DELEGATECALL RETURNDATASIZE PUSH1 0x00 DUP1 RETURNDATACOPY DUP1 DUP1 ISZERO PUSH2 0x07a8 JUMPI RETURNDATASIZE PUSH1 0x00 RETURN JUMPDEST RETURNDATASIZE PUSH1 0x00 REVERT JUMPDEST PUSH32 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x07db DUP2 PUSH2 0x0836 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x01 PUSH1 0x01 PUSH1 0xa0 SHL SUB DUP3 AND SWAP1 PUSH32 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b SWAP1 PUSH1 0x00 SWAP1 LOG2 POP JUMP JUMPDEST PUSH32 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 SSTORE JUMP JUMPDEST PUSH2 0x083f DUP2 PUSH2 0x089e JUMP JUMPDEST PUSH2 0x087a JUMPI PUSH1 0x40 MLOAD PUSH3 0x461bcd PUSH1 0xe5 SHL DUP2 MSTORE PUSH1 0x04 ADD DUP1 DUP1 PUSH1 0x20 ADD DUP3 DUP2 SUB DUP3 MSTORE PUSH1 0x3b DUP2 MSTORE PUSH1 0x20 ADD DUP1 PUSH2 0x090d PUSH1 0x3b SWAP2 CODECOPY PUSH1 0x40 ADD SWAP2 POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH32 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc SSTORE JUMP JUMPDEST EXTCODESIZE ISZERO ISZERO SWAP1 JUMP UNKNOWN_0xfe NUMBER PUSH2 0x6e6e PUSH16 0x742063616c6c2066616c6c6261636b20 PUSH7 0x756e6374696f6e SHA3 PUSH7 0x726f6d20746865 SHA3 PUSH17 0x726f78792061646d696e43616e6e6f7420 PUSH4 0x68616e67 PUSH6 0x207468652061 PUSH5 0x6d696e206f PUSH7 0x20612070726f78 PUSH26 0x20746f20746865207a65726f206164647265737343616e6e6f74 SHA3 PUSH20 0x657420612070726f787920696d706c656d656e74 PUSH2 0x7469 PUSH16 0x6e20746f2061206e6f6e2d636f6e7472 PUSH2 0x6374 SHA3 PUSH2 0x6464 PUSH19 0x657373a265627a7a72315820078b3c2f824cf0 UNKNOWN_0xca UNKNOWN_0x5d UNKNOWN_0xfc DUP11 SWAP5 RETURNDATACOPY CREATE UNKNOWN_0x5f SWAP2 DUP8 UNKNOWN_0xd0 SELFBALANCE UNKNOWN_0xc8 UNKNOWN_0x26 UNKNOWN_0xdb UNKNOWN_0x21 UNKNOWN_0x4b UNKNOWN_0xa6 UNKNOWN_0xec JUMP INVALID_0x7d 0x230029b964736f6c63430005100032